git-g*: also recognize Cygwin-flavored Perl on Windows


The MSYS2-based Perl shipped with recent Git for Windows reports $^O eq
"cygwin" rather than "msys", so the path normalization in the BEGIN
block was skipped. abs_path($0) on a Windows-style path then got
prepended with the cwd, breaking the @INC entry used to locate
git_gpush.pm. Accept "cygwin" as well.

The change to Perl reporting "cygwin" is in the MSYS2 SDK that's used
for building Git for Windows. See
https://github.com/msys2/MSYS2-packages/issues/3401

Change-Id: Iec21414d720e073c509a10ffb67ffbcd5f589717
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
commitc213a128b3d1c554e980886deaf9dca61fd6e919
parentd4abd9a515b9c47ff538ea1cf69f6aec98c363d9
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeThu, 30 Apr 2026 08:48:31 +0000