diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-03-08 20:07:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-08 20:07:57 -0800 |
commit | ad416ed433fdcf838916a84177fe9e810be19eff (patch) | |
tree | dcba56533726b1e791b4c9ab8f44c7f8fd4a1b2e /git-svn.perl | |
parent | caa99829a24bc4decf86278c3478c88f564a795a (diff) | |
parent | 56d5fe285583b5177ffc65dbe7df636ed5b8cc6b (diff) | |
download | git-ad416ed433fdcf838916a84177fe9e810be19eff.tar.gz |
Merge branch 'maint' to sync with 1.5.4.4
* maint:
GIT 1.5.4.4
ident.c: reword error message when the user name cannot be determined
Fix dcommit, rebase when rewriteRoot is in use
Really make the LF after reset in fast-import optional
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index 9e2faf90aa..1195569529 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1540,9 +1540,14 @@ sub find_by_url { # repos_root and, path are optional $remotes->{$repo_id}->{$_}); } my $p = $path; + my $rwr = rewrite_root({repo_id => $repo_id}); unless (defined $p) { $p = $full_url; - $p =~ s#^\Q$u\E(?:/|$)## or next; + my $z = $u; + if ($rwr) { + $z = $rwr; + } + $p =~ s#^\Q$z\E(?:/|$)## or next; } foreach my $f (keys %$fetch) { next if $f ne $p; |