mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
Remove trailing slashes
SVN dies a messy death when passed a path with trailing slashes.
This commit is contained in:
parent
ceae78b438
commit
4b1ca25e42
|
@ -280,7 +280,8 @@ ($$)
|
|||
$svnpath = "$branch_name/$branch/$path";
|
||||
}
|
||||
|
||||
return $svnpath
|
||||
$svnpath =~ s#/+$##;
|
||||
return $svnpath;
|
||||
}
|
||||
|
||||
sub get_file($$$) {
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue