Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t0001-init.sh: change confusing directory name
[gitweb.git]
/
git-svn.perl
diff --git
a/git-svn.perl
b/git-svn.perl
index f789a6eeca12ed34e6ef3746c3062e56f791d7e9..a366c891dc9892550093f0bb760d5d2580eb11cd 100755
(executable)
--- a/
git-svn.perl
+++ b/
git-svn.perl
@@
-643,6
+643,8
@@
sub canonicalize_path {
$path =~ s#/[^/]+/\.\.##g;
$path =~ s#/$##g;
$path =~ s#^\./## if $dot_slash_added;
+ $path =~ s#^/##;
+ $path =~ s#^\.$##;
return $path;
}