author | Johan Herland <johan@herland.net> | |
Mon, 11 Feb 2008 23:43:41 +0000 (00:43 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Feb 2008 19:35:09 +0000 (11:35 -0800) | ||
commit | 12f0a5ea7dc999bfe06973bf61261fc809c2b2fb | |
tree | e7a83d864a852fe0f177b1ddb242b476d3aedb07 | tree | snapshot |
parent | 9057f0a62c8681bcff8460fec80747a6aa5b43c8 | commit | diff |
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>
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 | diff | blob | history | |
t/t9200-git-cvsexportcommit.sh | diff | blob | history |