Skip to contentSkip to conversation

t9200: let "cvs init" create the test repository

PATCH In review Junio C Hamano 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t9200: let "cvs init" create the test repository

Some platforms (e.g. NetBSD 6.3) 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.

---
 t/t9200-git-cvsexportcommit.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
t/t9200-git-cvsexportcommit.sh +2 -1
index b59be9a..c5368a3 100755
@@ -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 &&
#1 lore raw
Quoted 1 line · Junio C Hamano

Some platforms (e.g. NetBSD 6.3) seem to configure their CVS to

s/6.3/6.0/; sorry for the noise.