git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 25, 2012, 01:09 UTC
Message-ID
<7vr4mflyxu.fsf@alter.siamese.dyndns.org>

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(-)
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 &&
Next: Junio C Hamano
Message 1 of 2 in “t9200: let "cvs init" create the test repository”
  1. t9200: let "cvs init" create the test repositoryJunio C Hamano, Dec 25, 2012
  2. Junio C HamanoDec 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.