-
Notifications
You must be signed in to change notification settings - Fork 2.1k
LFS does not use a SUBSTed Path in every place #4238
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
Comments
Hey, I'm almost certain that this is the same problem as in #4012. Git LFS is written in Go, and Go lacks a cross-platform function to canonicalize paths. Since we read data from Git and Git canonicalizes paths, they look different and we can't detect that they're the same location. A bug report about this has been to golang/go#37113, and we'll fix it in Git LFS when upstream decides they'd like to implement the required functionality. |
Moin! |
Could you check the PR in #4418 and see if it fixes your problems? If you need a binary, you should be able to download one from the Actions artfiacts. |
I am not sure if you'd expect what I described in #4417 to work, but it did not fix it for me.
Getting |
If you're using the Git LFS installed with Git for Windows, you either need to remove those binaries or reinstall Git for Windows with Git LFS in order to have the new version take effect. The Git LFS installer doesn't override the Git for Windows binaries at the moment. |
Indeed, and once I've re-installed everything, it worked. I was able to lock files from the subst directory. Very cool, thank you. |
Great. I'll open the PR up for review. Thanks for testing; I'm excited that I managed to finally put some useful Windows code together and that we can finally fix this. |
How does one check the release status of such a fix? |
The specific changes and PRs included in any release are generally listed in the notes, for example, on v2.13.3's release page. Individual releases are listed by tag. And major and minor releases are more fully documented in the change log. |
I'm using git lfs as Part of the git for Windows Installation v 2.27.0. It's git lfs 2.11 - see below the output of git lfs env for details.
Im using the dos SUBST command to redirect a subdirectory to the driveletter D:. Today I cloned an empty repository and wanted to track "*.docx" files and got the following error:
I cd'ed to the "real" directory and repeated the command successfully. After that cd'ed back to the D:-version of the folder an could work with lfs flawlessly. (git add, git commit, git push - all worked like expected).
When I do a git lfs env I see that all directorys are located on the D:-Drive. Only the LocalWorkingDir is located on C:
My OS is Windows 10 1709 (Build 16299.2045). I tested it also on Win 10 1909 (Build 18363.1016) - same error.
I don't think this is an intended behavior. At least it is not the behavior I did expect.
The text was updated successfully, but these errors were encountered: