git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix dcommit, rebase when rewriteRoot is in use

From
JGJohn Goerzen <jgoerzen@complete.org>
Date
Mar 8, 2008, 20:01 UTC
Message-ID
<1205006470-18882-1-git-send-email-jgoerzen@complete.org>
Problem described here:
http://thread.gmane.org/gmane.comp.version-control.git/76561
Signed-off-by: John Goerzen <jgoerzen@complete.org>
---
 git-svn.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 9e2faf9..1195569 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;
-- 
1.5.4.2
Next: Junio C Hamano
Message 1 of 6 in “Fix dcommit, rebase when rewriteRoot is in use”
  1. Fix dcommit, rebase when rewriteRoot is in useJohn Goerzen, Mar 8, 2008
  2. Junio C HamanoMar 8, 2008
  3. John GoerzenMar 8, 2008
  4. Eric WongMar 8, 2008
  5. Johannes SchindelinMar 8, 2008
  6. John GoerzenMar 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.