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

Latest Git version installation fails on Windows #156

Open
chiunglee opened this issue Mar 25, 2020 · 1 comment
Open

Latest Git version installation fails on Windows #156

chiunglee opened this issue Mar 25, 2020 · 1 comment

Comments

@chiunglee
Copy link

Follow-up issue from:

#152 (comment)
#153 (comment)

There is no more Git 2.24.1.1 file to download in https://github.com/git-for-windows/git/releases

It has been changed to 2.24.1.2 :( so the following code fails:

Invoke-WebRequest "https://github.com/git-for-windows/git/releases/download/v$gitVersion.windows.1/Git-$gitVersion-64-bit.exe" -UseBasicParsing -outfile "git-installer.exe"

The correct filename today should be: https://github.com/git-for-windows/git/releases/download/v$gitVersion.windows.2/Git-$gitVersion.2-64-bit.exe

The fix for this bug seems to have only worked for Git 2.24.1(2) specifically. Now that the current Git version is at 2.26.0 (and for most of the versions after 2.24.1), the current filename needs to have windows.1 instead of windows.2.

A best solution would be to add a check to see if the current version requires the windows.X to change.

@steveclay
Copy link
Collaborator

I've not seen this recently. The download link keeps changing for Windows, but I believe this is working again now.

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