You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As reported in discussion #5692, the git-lfs-standalone-file adapter parses input file:// URLs, and then only uses the url.Path element, so file:// URLs corresponding to Windows UNC file paths, where the hostname is parsed into the url.Host element, are unsupported.
To Reproduce
Steps to reproduce the behaviour:
On Windows, attempt a Git clone using a file://<host>/<path> URL corresponding to a Windows UNC path to another host, e.g.:
$ git clone "file://DESKTOP-D3J67S2/Temas_Git/Repositorio"
...
Error downloading object: Doc_01.txt (e470fa0): Smudge error: Error downloading Doc_01.txt (e470fa0d001e50b3ec3088022462a94ea7c87dd80106411b7d120f90b379e977): error initializing custom adapter "lfs-standalone-file" worker 0: [0] error creating handler: chdir /Temas_Git/Repositorio: El sistema no puede encontrar la ruta especificada.
Expected behaviour
The standalone transfer adapter should convert the file://host/path URL into a Windows UNC path and allow the operation to succeed. For instance, file://DESKTOP-D3J67S2/Temas_Git/Repositorio would become \\DESKTOP-D3J67S2\Temas_Git\Repositorio.
Describe the bug
As reported in discussion #5692, the
git-lfs-standalone-file
adapter parses inputfile://
URLs, and then only uses theurl.Path
element, sofile://
URLs corresponding to Windows UNC file paths, where the hostname is parsed into theurl.Host
element, are unsupported.To Reproduce
Steps to reproduce the behaviour:
file://<host>/<path>
URL corresponding to a Windows UNC path to another host, e.g.:Expected behaviour
The standalone transfer adapter should convert the
file://host/path
URL into a Windows UNC path and allow the operation to succeed. For instance,file://DESKTOP-D3J67S2/Temas_Git/Repositorio
would become\\DESKTOP-D3J67S2\Temas_Git\Repositorio
.System environment
Windows
Output of
git lfs env
Additional context
Conversion of a Windows
file://
URL into a UNC path is described in this blog post, as mentioned in golang/go#32456.To do this, we could borrow Go's implementation from their command-line tools.
The text was updated successfully, but these errors were encountered: