git-cvsimport: do not fail when CVSROOT is /
commit8c372fb01dcd9da5e0e538943cc173941c03ef2d
authorPhilippe Bruhat (BooK) <book@cpan.org>
Tue, 10 Jun 2008 12:32:06 +0000 (10 14:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Jun 2008 05:24:01 +0000 (10 22:24 -0700)
tree7bebe04ef5d7a76999bf5aae5c3168c8f1b39eb8
parente9039dd35194b7c1cf4ecd479928638166b8458f
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>
git-cvsimport.perl