Skip to content

Commit 8c372fb

Browse files
bookgitster
authored andcommitted
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 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>
1 parent e9039dd commit 8c372fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-cvsimport.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ sub conn {
227227
$proxyport = $1;
228228
}
229229
}
230+
$repo ||= '/';
230231

231232
# if username is not explicit in CVSROOT, then use current user, as cvs would
232233
$user=(getlogin() || $ENV{'LOGNAME'} || $ENV{'USER'} || "anonymous") unless $user;

0 commit comments

Comments
 (0)