Some platforms (e.g. NetBSD 6.3) seem to configure their CVS to
allow "cvs init" in an existing directory only to members of

Instead of preparing an empty directory and then running "cvs init"
on it, let's run "cvs init" and let it create the necessary

Signed-off-by: Junio C Hamano <>
 t/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index b59be9a..c5368a3 100755
--- a/t/
+++ b/t/
@@ -25,8 +25,9 @@ GIT_DIR=$PWD/.git
 rm -rf "$CVSROOT" "$CVSWORK"
-mkdir "$CVSROOT" &&
 cvs init &&
+test -d "$CVSROOT" &&
 cvs -Q co -d "$CVSWORK" . &&
 echo >empty &&
 git add empty &&
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to