{"thread":{"id":"13883","subject":"[PATCH] git-cvsimport: do not fail when CVSROOT is /","startedAt":"2008-06-10T12:32:06Z","lastAt":"2008-06-10T12:32:06Z","messageCount":1,"participants":["Philippe Bruhat (BooK)"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"79340","messageId":"1213101126-4974-1-git-send-email-book@cpan.org","threadId":"13883","inReplyTo":null,"subject":"[PATCH] git-cvsimport: do not fail when CVSROOT is /","fromName":"Philippe Bruhat (BooK)","fromEmail":"book@cpan.org","sentAt":"2008-06-10T12:32:06Z","receivedAt":"2008-06-10T12:32:06Z","isPatch":true,"sender":{"key":"book@cpan.org","avatar":"https://avatars.githubusercontent.com/u/44421?v=4"},"body":"For CVS repositories with unusual CVSROOT, git-cvsimport would fail:\n\n    $ git-cvsimport -v -C foo -d :pserver:anon:@cvs.example.com:/ foo\n    AuthReply: error 0 : no such repository\n\nThis patch ensures that the path is never empty, but at least '/'.\n\nSigned-off-by: Philippe Bruhat (BooK) <book@cpan.org>\n---\n git-cvsimport.perl |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/git-cvsimport.perl b/git-cvsimport.perl\nindex 5a02550..cacbfc0 100755\n--- a/git-cvsimport.perl\n+++ b/git-cvsimport.perl\n@@ -227,6 +227,7 @@ sub conn {\n \t\t\t\t$proxyport = $1;\n \t\t\t}\n \t\t}\n+\t\t$repo ||= '/';\n \n \t\t# if username is not explicit in CVSROOT, then use current user, as cvs would\n \t\t$user=(getlogin() || $ENV{'LOGNAME'} || $ENV{'USER'} || \"anonymous\") unless $user;\n-- \n1.5.4.3\n"}]}