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
Running git lfs env shows Error: error converting ".git" to absolute: EvalSymlinks: too many links and path e.g. for LocalWorkingDir is empty. See output below.
lfs and hooks directory are placed in working directory for git lfs command, cause paths are not correctly set.
To Reproduce
Steps to reproduce the behavior:
Add additional drive to PC (e.g. hard disk or usb stick)
Go to Control Panel -> Administrative Tools -> Computer Management -> Disk Management
Right click on additional drive and select "Change Drive Letter and Paths..."
Click "Add.." and mount to an empty folder (e.g. "C:\UsbStick"), called in the following steps
Remove the existing mount to drive letter. So only mount to and not to a drive letter.
Go to and create folder "test_repo"
Run git init in "test_repo"
Run git lfs env in "test_repo"
Expected behavior
No error message, all paths are correctly set
System environment
Observed on Windows 7 and Windows 10
Additional context
Output of git rev-parse --git-dir --show-toplevel:
.git
C:/USBStick/test_repo
If I go into a subfolder of the repo error changes to Error: error converting "C:\\USBStick\\test_repo\\.git" to absolute: EvalSymlinks: too many links
Output of git rev-parse --git-dir --show-toplevel in subfolder:
C:/USBStick/test_repo/.git
C:/USBStick/test_repo
The text was updated successfully, but these errors were encountered:
Thanks for reporting. This is another instance of #4012, which is, in the general case, about the fact that paths aren't properly canonicalized by the built-in Go functions on Windows. We're tracking that there and I'm (slowly) working on a patch to Git that should help with this. In the mean time, I would either access this data using WSL and a Linux version of Git LFS or I'd avoid this type of mounting altogether.
I'm going to close this in favor of #4012, since this is essentially going to be fixed by the same approach.
Describe the bug
Running
git lfs env
showsError: error converting ".git" to absolute: EvalSymlinks: too many links
and path e.g. forLocalWorkingDir
is empty. See output below.lfs and hooks directory are placed in working directory for git lfs command, cause paths are not correctly set.
To Reproduce
Steps to reproduce the behavior:
git init
in "test_repo"git lfs env
in "test_repo"Expected behavior
No error message, all paths are correctly set
System environment
Observed on Windows 7 and Windows 10
Output of
git lfs env
Additional context
Output of
git rev-parse --git-dir --show-toplevel
:If I go into a subfolder of the repo error changes to
Error: error converting "C:\\USBStick\\test_repo\\.git" to absolute: EvalSymlinks: too many links
Output of
git rev-parse --git-dir --show-toplevel
in subfolder:The text was updated successfully, but these errors were encountered: