Merge branch 'jc/test-cvs-no-init-in-existing-dir'
authorJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2013 18:38:09 +0000 (10:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2013 18:38:09 +0000 (10:38 -0800)
t9200 runs "cvs init" on a directory that already exists, but a
platform can configure this fail for the current user (e.g. you need
to be in the cvsadmin group on NetBSD 6.0).

* jc/test-cvs-no-init-in-existing-dir:
t9200: let "cvs init" create the test repository

t/t9200-git-cvsexportcommit.sh
index 69934b2e775c8591ca209c9275abc40b921ecab6..3fb3368903686c8588c51e881beaee1f29808575 100755 (executable)
@@ -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 &&