git-cvsimport: do not fail when CVSROOT is /
PATCH 1/1 git-cvsimport: do not fail when CVSROOT is /
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 repositoryThis patch ensures that the path is never empty, but at least '/'.
Signed-off-by Philippe Bruhat (BooK) <[email protected]>
--- git-cvsimport.perl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
git-cvsimport.perl +1 -0
@@ -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;
Signature · 1 line
1.5.4.3