git-cvsexportcommit: Fix calling Perl's rel2abs() on MSYS
commit578cb11c4aef24fd331362390e53c5a8e242d662
authorSebastian Schuberth <sschuberth@gmail.com>
Wed, 11 Jan 2012 09:21:10 +0000 (11 10:21 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 11 Jan 2012 17:07:04 +0000 (11 17:07 +0000)
treebb8aa291bd761566a1997f06845cdb603173715d
parente149fcea75bab110a58ee93ae1958d00b12b8663
git-cvsexportcommit: Fix calling Perl's rel2abs() on MSYS

Due to MSYS path mangling GIT_DIR contains a Windows-style path when
checked inside a Perl script even if GIT_DIR was previously set to an
MSYS-style path in a shell script. So explicitly convert to an MSYS-style
path before calling Perl's rel2abs() to make it work.

This fix was inspired by a very similar patch in WebKit:

http://trac.webkit.org/changeset/76255/trunk/Tools/Scripts/commit-log-editor

Tested-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
git-cvsexportcommit.perl