-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Git doesn't pick up user installation directories #40229
Comments
Hi, buddy! I find a way to reslove this. |
@WallenHan |
@liaoya I had tried this. but not work. Fortunately, the linux style works well。 |
Automatically launching Automatically launching Git from Github for Windows was disabled because of #35965.
@Tyriar I don't understand what you mean by that since the Git installer doesn't seem to have a user-only option. At least I could not find one. Also, the latest version shows a popup, guiding the user of what to do, for those who did not install Git in its default path: Nevertheless, we can experiment with using something like |
The problem is, that the default setup for git, which is also reached by the "download Git" button in the error message, is installing git into the hidden appdata-folder of the users profile directory. There is no option to install it even optionally in the program folders (tried 3 times now, altough i had already installed (or because?)) So it would be nice if you would also include to search it automatically in the specific users folder (eg. %userprofile%\AppData\Local\Programs\Git\cmd) because the error message currently does confuse. Currently the user (at least on win10) has to install git AND has to configure the git.path. Only installing it does not fix it. EDIT: |
@LeopoldLerch Totally agree. I couldn't get the same behaviour to happen on my machine... How does the setup propose that path to you? |
Well, when already installed, it does not . I uninstalled it, and then the usual path-picker for the installation path is displayed. Which is now preset to C:\Program Files. Don´t know why it it was installed in my users-directory or how i managed it on a previous version. But I surely did not provide the path to my profile in a textbox. Maybe there was a default option to install it for all users or just me in the path. |
Got it. Can you re-confirm that the path is indeed |
it was at least previously. After uninstalling i had only the option to set the path, but it is now pretargeting the programs-folder. And now it works without setting git.path explicitly in vs-code. |
OK pushed two changes:
Verification
In both scenarios, VS Code should pick it up. I'm promoting this issue to a recovery candidate build: 1.19.1. |
The problem is very serious. Please fix it as soon as possible. |
I also encountered this problem, add 'git.path' user setting to resolved temporarily. |
I verified the steps from #40229 (comment) |
For future reference: I believe Git defaults its install location to the local app. data folder when the user doesn't have the administrative rights to install to the system's program files. |
Hope to change back. If use |
This has already been fixed and might already be available in the insiders edition. It will be rolled out to stable with the next recovery release. |
Windows 7: my Git is installed here: C:\Users\jkahl1\AppData\Local\Programs\Git\cmd\git.exe |
Can I roll back my VS Code version? |
@JoeKahl set the |
@Tyriar Thank you. Here is what worked for me. The Warn message is actually quite good. |
In the usual settings file of VSCode. You can reach it via Ctrl-Comma (at
least on Windows) or via File > Preferences > Settings. Then enter git.path
in the search field.
2017-12-20 18:49 GMT+01:00 Joe Kahl <[email protected]>:
… Thank you Tyriar. One more piece of info and I should be good. Where is
the git.path configured?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#40229 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQIjq6h7-S5vM9S3AT4rBGo1U09Z-hBks5tCUi3gaJpZM4RCrbb>
.
--
Dirk Räder
Morissestr. 7
26180 Rastede
T: +49-4402-5157715
M: +49-176-60835036
E: [email protected]
|
Me having the same with GitHub portable version |
Reported in https://twitter.com/ArtVandelay440/status/941408422217601030
#32739 used to find git on the path. We should add the default user installation dir to the set of paths we search.
Might be a good candidate for recovery build?
The text was updated successfully, but these errors were encountered: