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.
Follow-up issue from:
#152 (comment)
#153 (comment)
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.1instead ofwindows.2.A best solution would be to add a check to see if the current version requires the
windows.Xto change.