Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-cvsimport: do not fail when CVSROOT is /
author
Philippe Bruhat (BooK)
<book@cpan.org>
Tue, 10 Jun 2008 12:32:06 +0000
(14:32 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 11 Jun 2008 05:24:01 +0000
(22:24 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e9039dd
)
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index 5a0255052c9360fdc4cbbdd79008a206ab3e4623..cacbfc0259fd1ae353117d93e345cd8c4dd41188 100755
(executable)
--- 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;