-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add git-lfs to path #1503
Comments
This behaviour was changed a while ago, git-for-windows/build-extra#141 is the context, and I'll point out this comment:
I'll also let @dscho chime in and see if he knows anyone on the VS team who look after the Git integration to see if they can provide any additional help. |
@shiftkey thank you for explaining the reasoning. That's precisely what my thinking was, too. As to Visual Studio supporting Git LFS: If I remember correctly, the official Git LFS installer from the Git LFS project installs Git LFS into the I deem this ticket independent of Git for Windows itself. |
But this is the current behavior. If I have Git for Windows with Git LFS installed and also the standalone Git LFS installer, Using the standalone Git LFS installer puts |
@pascalberger I understand your concerns. In your scenario, I would highly recommend not using Git for Windows' embedded Git LFS, but only the Git LFS installed by the official Git LFS installer. |
@pascalberger unless you have an idea how we can make your desired feature work: we cannot add I'll keep this ticket open for a couple of days in the hope that you can come up with a solution other than what I suggested. |
@dscho Would it be possible to add a symlink for |
@pascalberger for And then we would need to hard-link/copy the wrapper to We would then also have to take care of deleting that file at uninstall time, most likely it will suffice to add it to the @pascalberger how about giving it a try? |
@dscho I've taken over the task of @pascalberger and tried to adjust the wrapper and the installer. I've created two pullrequests git-for-windows/MINGW-packages#22 and git-for-windows/build-extra#173 I was able to compile the wrapper and test it. But for the installer I'm not sure, if I'll succeed. I'll do my best and will let you know 😄... |
Thank you! @stffabi! |
When choosing to "Use Git from the Windows Command Prompt" (i.e. add only the minimal set of Git executables to the `PATH`), and when choosing the Git LFS component, Git LFS [is now included in that minimal set](git-for-windows/git#1503). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho thanks so much for merging the changes. I was just able to compile the new installer and test it. Unfortunately it seems like the CopyBuiltin currently doesn't work as we both expected. On line L1590 for newer windows versions the target of the hardlink is Is this the intended behaviour or should this case also be hardlinked to |
But it is |
(Note the difference between |
Okey, but then installer seems to use the wrong destination. Line 1590: The resulted hardlink would map to |
So we should change the line to: |
Oh, you're right! Darn, my brain is rotten today. I'll fix it up. |
Please be sure to review the code of conduct and be respectful of other users. cc/ @git-for-windows/trusted-git-for-windows-developers |
Thanks @sentiment-bot! I am sorry 😄 |
@dscho I may create another PR for this if you would like, I'm just testing the change :) |
Oh, I have the change, too... |
Great, thanks then I'll let you merge yours :)... |
Could you give this a quick glance-over? |
Now it is even a PR: git-for-windows/build-extra#174 |
Oh, and if you could test it, that would be awesome and give me the time to look at two other tickets... 😊 |
Sure, I'll let you know the results of my test. |
@stffabi thank you so much! |
@dscho you're welcome. I've left some comments directly on the PR. |
Setup
defaults?
to the issue you're seeing?
None
Details
Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Installer
It would be nice if installing Git for Windows with git-lfs is sufficient to have LFS support in VIsual Studio.
Git for Windows installs git-lfs to
c:\Program Files\Git\mingw64\bin\git-lfs.exe
, withoutgit-lfs.exe
being available on the path. While this works for standalone Git installation, this doesn't work for Visual Studio which has its own Git installation and cannot find git-lfs. Therefore currently it is required to still install git-lfs using the standalone installer (or putgit-lfs
in the path otherwise)URL to that repository to help us with testing?
N/A
The text was updated successfully, but these errors were encountered: