Skip to content

Latest Git version installation fails on Windows #156

@chiunglee

Description

@chiunglee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions