Skip to content
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

git ls-remote fails when called if the shell is on a UNC path #1181

Closed
James-Dengel opened this issue May 26, 2017 · 3 comments
Closed

git ls-remote fails when called if the shell is on a UNC path #1181

James-Dengel opened this issue May 26, 2017 · 3 comments
Assignees
Milestone

Comments

@James-Dengel
Copy link

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.13.0.windows.1
built from commit: eba7af3dbb4c846c6303c5f64102acee696c9ab0
sizeof-long: 4
machine: x86_64
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows 7 64 bit.
$ cmd.exe /c ver

'\\sw-filer2\Lab\Reno\reno_releases\0.1\dist'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

Microsoft Windows [Version 6.1.7601]

  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Disabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I am currently working on a UNC mount, this worked in previous version of git 2.9.13 was the version I was running previously.
If i map the drive or use a local path it works correctly.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

I can reproduce this issue with Powershell or from within GitBash as long as I am on a UNC path.

cd //sw-filer2/Lab/Reno/reno_releases/0.1/dist
git ls-remote ssh://git@bitbucket:7999/lab_automation/PyCharm.idea.git merckx
  • What did you expect to occur after running these commands?

2918018474e9d7e408d5bb2667d91ab83aeeb53b refs/heads/merckx
2918018474e9d7e408d5bb2667d91ab83aeeb53b refs/svn/root/branches/merckx

  • What actually happened instead?

fatal: failed to stat ' //sw-filer2': No such file or directory

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

It occurs on all repositories and only on a UNC path.

@James-Dengel James-Dengel changed the title git ls-remote fails when on a UNC path git ls-remote fails when called if the shell is on a UNC path May 26, 2017
@dscho dscho closed this as completed in 26173ab May 29, 2017
@dscho dscho added this to the v2.13.0(1) milestone May 29, 2017
@dscho dscho self-assigned this May 29, 2017
@dscho
Copy link
Member

dscho commented May 29, 2017

Please test the newest snapshot here: https://wingit.blob.core.windows.net/files/index.html

dscho added a commit to git-for-windows/build-extra that referenced this issue May 30, 2017
Executing `git.exe` in Git Bash when the current
working directory is a UNC path [now works as
expected](git-for-windows/git#1181).

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue May 30, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue May 30, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue May 30, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue May 30, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 5, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
@James-Dengel
Copy link
Author

Thanks I have tested this now and it works on a Network Path.

Thanks.

@dscho
Copy link
Member

dscho commented Jun 5, 2017

Thank you for testing and sharing the results.

dscho added a commit that referenced this issue Jun 7, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 7, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Jun 7, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 7, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 19, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Jun 19, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Jun 20, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 21, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 21, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Jun 21, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Jun 25, 2017
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Aug 26, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 2, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 2, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 2, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Sep 9, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Sep 10, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 16, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Sep 18, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 24, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Sep 24, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Sep 30, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Oct 2, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Oct 7, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
git-for-windows-ci pushed a commit that referenced this issue Oct 17, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Oct 21, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Oct 23, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Oct 25, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Oct 30, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Nov 2, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Nov 6, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Nov 16, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Nov 25, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this issue Nov 26, 2019
The first offset in a UNC path is not the host name, but the folder name after that.

This fixes #1181

Signed-off-by: Johannes Schindelin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants