Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t9200: let "cvs init" create the test repository
author
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Dec 2012 01:09:49 +0000
(17:09 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Dec 2012 01:42:07 +0000
(17:42 -0800)
Some platforms (e.g. NetBSD 6.0) seem to configure their CVS to
allow "cvs init" in an existing directory only to members of
"cvsadmin".
Instead of preparing an empty directory and then running "cvs init"
on it, let's run "cvs init" and let it create the necessary
directory.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9200-git-cvsexportcommit.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c2999ad
)
diff --git
a/t/t9200-git-cvsexportcommit.sh
b/t/t9200-git-cvsexportcommit.sh
index b59be9a894b2481ece7dc5ea9038bc6c88d29f15..c5368a38cd0773a1f61ec66d8ccdba25dfd6dc9f 100755
(executable)
--- a/
t/t9200-git-cvsexportcommit.sh
+++ b/
t/t9200-git-cvsexportcommit.sh
@@
-25,8
+25,9
@@
GIT_DIR=$PWD/.git
export CVSROOT CVSWORK GIT_DIR
rm -rf "$CVSROOT" "$CVSWORK"
-mkdir "$CVSROOT" &&
+
cvs init &&
+test -d "$CVSROOT" &&
cvs -Q co -d "$CVSWORK" . &&
echo >empty &&
git add empty &&