]> git.ipfire.org Git - thirdparty/git.git/commit - git-cvsexportcommit.perl
Fix 'git cvsexportcommit -w $cvsdir ...' when used with relative $GIT_DIR
authorJohan Herland <johan@herland.net>
Mon, 11 Feb 2008 23:43:41 +0000 (00:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Feb 2008 03:57:07 +0000 (19:57 -0800)
commita72375948528935bbd4cb34bf277b49e0114aac3
tree765678379678779e55f11a06a67d76b339b08a30
parentab5a4231b0e24566dcd79baeae089b267bc7dc26
Fix 'git cvsexportcommit -w $cvsdir ...' when used with relative $GIT_DIR

When using the '-w $cvsdir' option to cvsexportcommit, it will chdir into
$cvsdir before executing several other git commands. If $GIT_DIR is set to
a relative path (e.g. '.'), the git commands executed by cvsexportcommit
will naturally fail.

Therefore, ensure that $GIT_DIR is absolute before the chdir to $cvsdir.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsexportcommit.perl
t/t9200-git-cvsexportcommit.sh