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

[PATCH 2/2] git-svn: pass an unambiguous ref to rev-list when grafting-branches

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 8, 2007, 03:35 UTC
Message-ID
<11682273424039-git-send-email-normalperson@yhbt.net>
In-Reply-To
<11682273413995-git-send-email-normalperson@yhbt.net>

Some users apparently create local heads with the same basename as the remote branch they're tracking.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index a092be8..56f1700 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1086,7 +1086,7 @@ sub graft_merge_msg {
 	my ($grafts, $l_map, $u, $p, @re) = @_;
 
 	my $x = $l_map->{$u}->{$p};
-	my $rl = rev_list_raw($x);
+	my $rl = rev_list_raw("refs/remotes/$x");
 	while (my $c = next_rev_list_entry($rl)) {
 		foreach my $re (@re) {
 			my (@br) = ($c->{m} =~ /$re/g);
-- 
1.5.0.rc0.ge21b-dirty
Previous: Eric Wong
Message 2 of 2 in “git-svn: add --prefix= option to multi-init”
  1. 1/2 git-svn: add --prefix= option to multi-initEric Wong, Jan 8, 2007
  2. 2/2 git-svn: pass an unambiguous ref to rev-list when grafting-branchesEric Wong, Jan 8, 2007

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.