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

[PATCH] git-cvsimport: do not fail when CVSROOT is /

From
Philippe Bruhat (BooK) <book@cpan.org>
Date
Jun 10, 2008, 12:32 UTC
Message-ID
<1213101126-4974-1-git-send-email-book@cpan.org>
For CVS repositories with unusual CVSROOT, git-cvsimport would fail:
    $ git-cvsimport -v -C foo -d :pserver:anon:@cvs.example.com:/ foo
    AuthReply: error 0 : no such repository
This patch ensures that the path is never empty, but at least '/'.
Signed-off-by: Philippe Bruhat (BooK) <book@cpan.org>
---
 git-cvsimport.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 5a02550..cacbfc0 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -227,6 +227,7 @@ sub conn {
 				$proxyport = $1;
 			}
 		}
+		$repo ||= '/';
 
 		# if username is not explicit in CVSROOT, then use current user, as cvs would
 		$user=(getlogin() || $ENV{'LOGNAME'} || $ENV{'USER'} || "anonymous") unless $user;
-- 
1.5.4.3
Message 1 of 1 in “git-cvsimport: do not fail when CVSROOT is /”
  1. git-cvsimport: do not fail when CVSROOT is /Philippe Bruhat (BooK), Jun 10, 2008

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.