Skip to content

Commit

Permalink
Merge branch 'svnup' of http://netz.smurf.noris.de/git/git
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Nov 14, 2005
2 parents 0086e2c + 4b1ca25 commit 6d5410d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Description: The git content addressable filesystem, GNUArch interoperability

Package: git-cvs
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, git-core
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, git-core, cvsps (>= 2.1)
Suggests: cvs
Description: The git content addressable filesystem, CVS interoperability
This package contains 'git-cvsimport', to import development history from
Expand Down
7 changes: 6 additions & 1 deletion git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ ($$)
$svnpath = "$branch_name/$branch/$path";
}

return $svnpath
$svnpath =~ s#/+$##;
return $svnpath;
}

sub get_file($$$) {
Expand Down Expand Up @@ -372,6 +373,10 @@ ($$$$$$$$)
my($newrev,$newbranch,$path,$oldpath,$rev,$node_kind,$new,$parents) = @_;

my($srcbranch,$srcpath) = split_path($rev,$oldpath);
unless(defined $srcbranch) {
print "Path not found when copying from $oldpath @ $rev\n";
return;
}
my $therev = branch_rev($srcbranch, $rev);
my $gitrev = $branches{$srcbranch}{$therev};
unless($gitrev) {
Expand Down

0 comments on commit 6d5410d

Please sign in to comment.