Skip to content

Git Clone with 'file://' URLs Not Handled Properly #1264

Closed
@jgehrig

Description

@jgehrig
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    Windows 10 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?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.14393] 
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# type "C:\Program Files\Git\etc\install-options.txt"

Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Its not Linux? :(

Details

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

ConEmu/cmd.exe

$ git clone file://server/file/path/here
Cloning into 'here'...
fatal: 'C:/Program Files/Git/file/path/here' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • What did you expect to occur after running these commands?

Git should clone the files from \\servername\file\path\here

  • What actually happened instead?

Git tries (and fails) to clone from C:\Program Files\Git\file\path\here

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

This issue repros with any type of file:// style network path.

I can get this to work (manually) by using the syntax "git clone //servername/file/path/here", so this seems like an URL parsing error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions