summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea99c3a)
raw | patch | inline | side by side (parent: ea99c3a)
author | Brian Downing <bdowning@lavos.net> | |
Thu, 9 Aug 2007 04:26:10 +0000 (23:26 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 9 Aug 2007 05:16:46 +0000 (22:16 -0700) |
git-cvsserver used checkout-index internally for commit and annotate.
Since a work tree is required for this to function now, this was
breaking. Work around this by defining GIT_WORK_TREE=. in the
appropriate places.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since a work tree is required for this to function now, this was
breaking. Work around this by defining GIT_WORK_TREE=. in the
appropriate places.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsserver.perl | patch | blob | history |
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index ae7d51158912a00dd169c4f38c531f7dfbdba6dd..13dbd27a80adfee43ed6282041b948bd92e5cc12 100755 (executable)
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
$log->info("Lockless commit start, basing commit on '$tmpdir', index file is '$file_index'");
$ENV{GIT_DIR} = $state->{CVSROOT} . "/";
+ $ENV{GIT_WORK_TREE} = ".";
$ENV{GIT_INDEX_FILE} = $file_index;
# Remember where the head was at the beginning.
$log->info("Temp checkoutdir creation successful, basing annotate session work on '$tmpdir', index file is '$file_index'");
$ENV{GIT_DIR} = $state->{CVSROOT} . "/";
+ $ENV{GIT_WORK_TREE} = ".";
$ENV{GIT_INDEX_FILE} = $file_index;
chdir $tmpdir;