threads / patch / 32454

patcht9200: let "cvs init" create the test repository

Subject: [PATCH] t9200: let "cvs init" create the test repository

## tl;dr

2 messages between Dec 25, 2012 and Dec 25, 2012. Diffs are folded; open one to read it.

replies: 1people: 1as markdown or json

Junio C Hamano· Dec 25, 2012, 01:09 UTC · lore

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.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 t/t9200-git-cvsexportcommit.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Show changes to t/t9200-git-cvsexportcommit.sh +2 −1
diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
index b59be9a..c5368a3 100755
--- 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 &&

← back to recent threads