author | Sebastian Schuberth <sschuberth@gmail.com> | |
Wed, 11 Jan 2012 09:21:10 +0000 (10:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Jan 2012 02:04:08 +0000 (18:04 -0800) | ||
commit | 37495eef4c6071fa124911753cfca3690ea4bf96 | |
tree | 95513a128cf0dac0bb532d7254437b5e49b87ebe | tree | snapshot |
parent | 4397c6535ea314b3412d6a0658ecf44241d07df1 | commit | diff |
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
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Tested-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Tested-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsexportcommit.perl | diff | blob | history |