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

[PATCH 6/7] Fix an error when a svn revision consists only of the creation of a new tag

From
YSYaacov Akiba Slama <ya@slamail.org>
Date
Nov 2, 2005, 21:51 UTC
Message-ID
<E1EXQWT-00050O-Vn@localhost.localdomain>
directory (/tags/this_is_a_tag).
Signed-off-by: Yaacov Akiba Slama <ya@slamail.org>
---
 git-svnimport.perl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

applies-to: 12064f4a47217c44cc28ffb5977ffcd245179b5f f8f37463ee4c3b24249192345f81a16c0dd74f66

diff --git a/git-svnimport.perl b/git-svnimport.perl
index ae82a7c..e97f470 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -648,6 +648,10 @@ sub commit {
 		die "Error running git-commit-tree: $?\n" if $?;
 	}
 
+	if (not defined $cid) {
+		$cid = $branches{"/"}{"LAST"};
+	}
+
 	if(not defined $dest) {
 		print "... no known parent\n" if $opt_v;
 	} elsif(not $tag) {
@@ -664,6 +668,7 @@ sub commit {
 		# the tag was 'complex', i.e. did not refer to a "real" revision
 
 		$dest =~ tr/_/\./ if $opt_u;
+		$branch = $dest;
 
 		my $pid = open2($in, $out, 'git-mktag');
 		print $out ("object $cid\n".
---
0.99.9.GIT
Message 1 of 1 in “Fix an error when a svn revision consists only of the creation of a new tag”
  1. 6/7 Fix an error when a svn revision consists only of the creation of a new tagYaacov Akiba Slama, Nov 2, 2005

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.