-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Starting with 3.20, the chocolatey package install is failing and I'm seeing the same behavior when I attempt a silent install from the command line using the exe file.
This just fails without any indication of what happened unless I add the switch to create a log file
.\git-lfs-windows-v3.2.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOG
The log shows that a Warning message was suppressed and defaulted to No which cancelled the install process.
Warning: Found Git in unexpected location: "c:\program files\git\cmd\git.EXE"
Defaulting to No for suppressed message box (Yes/No):
An executable Git program was found in an unexpected location outside of Program Files:
"c:\program files\git\cmd\git.EXE"
If this looks dubious, Git LFS should not be registered using it.
Do you want to register Git LFS using this Git program?
Refusing to use Git found at: "c:\program files\git\cmd\git.EXE"
Depending on the exact configuration of the PC, the error message might say c:\program files\git\bin\git.exe. I can't understand why git-lfs thinks that location is "outside of Program Files." If I run the installer manually without the /SILENT switch and choose Yes then it installs as expected but this breaks any scripted install.