-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pushing to UNC paths seems broken but mounted network drives works #439
Comments
I will probably not manage to have a look at this issue before Monday. Please feel free to ping me on Tuesday if you haven't heard back from me by then. |
Repro:
I tried some other combinations too:
|
I recently executed |
Edit: Forgot to mention, this is on Windows 10. Fetch doesn't seem to be working for me either, despite the URL being set correctly:
|
On Windows 7
Same on Windows 10. Very strange behavior, but reproduible! |
So, probaly the issue with |
Testing Radrik5's comment about first init-ing the repo and then fetching doesn't work for me:
|
@ablaylock could you try repo shared on your local PC: |
@Radrik5 A locally hosted repo works. Tested with the following steps (some output removed):
This however doesn't work for non-localhost repositories (i.e. those hosted on another computer). |
@ablaylock could you also try repo shared on another remote? |
@Radrik5 Cloning from a different computer with a different share works. PC1 -> Windows 10 Pro x64 Server -> Client
Server1 -> PC2 Cloning does not work. Error:
|
@ablaylock this looks like a configuration issue on Server1 (permissions of something else). Could you install Git 1.9.5 and confirm that it still works with Server1? |
@Radrik5 Testing with Git 1.9.5 does work with the following commands on Server1. I downloaded this version:
Trying the exact same commands in git 2.6.2:
|
@ablaylock unfortunately I don't have more ideas on how to find the cause of the problem. Please try to create a reproducible example (why repo shared on Server1 doesn't work?) or try to debug the git process. Some time ago I used Eclipse and gdb but maybe there are better tools today. @dscho may help with this. |
Is there a discussion of how to debug git. I looked at the wiki for this project and arrived at this page for "Building and Debugging" |
@ablaylock I just described the steps here. |
I was able to perform a quick test, and can verify that However, using |
I also have a problem with cloning:
He has read/write permission to the folder. |
@mkaut please do not hide bug reports in unrelated tickets ("unable to get current working directory" is clearly unrelated to UNC paths, and you will find that searching for that phrase turns up other tickets that would be more appropriate). |
There has been some substantial work on UNC paths recently. Sadly, I am really scarce on time; would you mind testing with v2.11.1? |
I have a scenario where I can reproduce this problem. I found that I don't get the problem with Git version 2.5.2, but I can reproduce it with 2.5.3. |
Wow, speaking of going back some ways ;-) Having said that, have you read this comment?
Maybe you want to describe the scenario, as well as the exact steps, and in particular the exact output. If you clone from, say, In the meantime, please increase the verbosity, it is very frustrating for me otherwise (and you want to keep me happy, don't you, as that's all you have to offer me, eh? 😄). |
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in #439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch addresses a problem identified in git-for-windows#439: while cloning/fetching/pushing from "POSIX-ified UNC paths" (i.e. UNC paths whose backslashes have been converted to forward slashes) works for some time now, true UNC paths (with backslashes left intact) were handled incorrectly. Example: git clone //myserver/folder/repo.git works, but git clone \\myserver\folder\repo.git (in CMD; in Git Bash, the backslashes would need to be doubled) used to fail. The reason was an unexpected difference in command-line handling between Win32 executables and MSYS2 ones (such as the shell that is used by git-clone.exe to spawn git-upload-pack.exe). This topic branch features a workaround *just* for the case where Git passes stuff through sh.exe (which covers quite a few use cases, though). Signed-off-by: Johannes Schindelin <[email protected]>
…ree bug in cache_tree_verify() This is a copy of [the v2 patch sent by Philip Wood](https://lore.kernel.org/git/[email protected]/T/#u). This fixes a possible segfault when a `git rebase --apply` creates a full cache tree in a sparse index. There is a slight change from Philip's patch that makes the test more robust to verbose output.
I have some projects that were configured with remotes that have a UNC path i.e.
//remote-serve/myProject
which were set up with git 1.9.x. It seems that with 2.5.3 they no longer work when pushing or pulling a project.When executing a push I get the following error:
when the remote is configured like:
However updating the remote url to the same share which has been mapped as a network drive works
//remote-serve/ -> U:/
:System configuration:
Windows 10 x64 Pro
The text was updated successfully, but these errors were encountered: