Skip to content
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 update-git-for-windows -y causes Installer Popup #2548

Closed
1 task done
ld0614 opened this issue Mar 18, 2020 · 2 comments
Closed
1 task done

Git update-git-for-windows -y causes Installer Popup #2548

ld0614 opened this issue Mar 18, 2020 · 2 comments
Milestone

Comments

@ld0614
Copy link

ld0614 commented Mar 18, 2020

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

2.23.0.windows.1 (64bit)
(since updated to 2.25.1)

$ git --version --bild-options

git version 2.25.1.windows.1
cpu: x86_64
built from commit: cceb69da75b4906bb04cfb3a2f7f37b12b985ec3
sizeof-long: 4
sizeof-size_t: 8

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18362.720]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VisualStudioCode
Custom Editor Path: 
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

No

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD or PowerShell

git update-git-for-windows -y
  • What did you expect to occur after running these commands?

git should automatically identify and update, download it and silently install it

  • What actually happened instead?

git successfully identifies and downloads the update however when it triggers the update it causes a license screen to display which requires user interaction. Therefore the update can't be fully automated.

I believe that this is due to the installer only calling the /SILENT command on the new installer.
When manually testing with the /VERYSILENT command the installer works as expected. I believe that the triggering code is here

I'm happy to create a PR just to update this parameter but didn't know if this was desired behavior / this should be behind a separate update parameter?

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

N/A

@ld0614 ld0614 changed the title Git update-git-for-windows -y causes Git update-git-for-windows -y causes Installer Popup Mar 18, 2020
@dscho
Copy link
Member

dscho commented Mar 19, 2020

I believe that this is due to the installer only calling the /SILENT command on the new installer.
When manually testing with the /VERYSILENT command the installer works as expected. I believe that the triggering code is here

Good idea!

I'm happy to create a PR just to update this parameter but didn't know if this was desired behavior / this should be behind a separate update parameter?

Yes, please create a PR, and yes, what you described is the desired behavior.

@dscho
Copy link
Member

dscho commented Mar 20, 2020

Fixed via git-for-windows/build-extra#279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants