git for windows 2.56 upgrade dies at Runtime error (at 158:581)

Feb 12, 2025
40
0
0
git for windows upgrades from 2.55.x to any 2.56 build can bail out in InitializeSetup with this, fresh installs are fine

Runtime error (at 158:581):

Array index out of bounds (0). Length is 0.

setup grabs the first line of the old git.exe version output without checking there is one. an IFEO Debugger entry on git.exe (some patch tools add that during updates) makes it print nothing and the installer quits with exit code 1

clearing that entry first lets it go through