{"thread":{"id":"2327","subject":"[PATCH 6/7] Fix an error when a svn revision consists only of the creation of a new tag","startedAt":"2005-11-02T21:51:57Z","lastAt":"2005-11-02T21:51:57Z","messageCount":1,"participants":["Yaacov Akiba Slama"],"isPatch":true,"patchVersion":1,"patchTotal":7},"messages":[{"id":"11042","messageId":"E1EXQWT-00050O-Vn@localhost.localdomain","threadId":"2327","inReplyTo":null,"subject":"[PATCH 6/7] Fix an error when a svn revision consists only of the creation of a new tag","fromName":"Yaacov Akiba Slama","fromEmail":"ya@slamail.org","sentAt":"2005-11-02T21:51:57Z","receivedAt":"2005-11-02T21:51:57Z","isPatch":true,"sender":{"key":"ya@slamail.org","avatar":null},"body":"directory (/tags/this_is_a_tag).\n\nSigned-off-by: Yaacov Akiba Slama <ya@slamail.org>\n\n---\n\n git-svnimport.perl |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\napplies-to: 12064f4a47217c44cc28ffb5977ffcd245179b5f\nf8f37463ee4c3b24249192345f81a16c0dd74f66\ndiff --git a/git-svnimport.perl b/git-svnimport.perl\nindex ae82a7c..e97f470 100755\n--- a/git-svnimport.perl\n+++ b/git-svnimport.perl\n@@ -648,6 +648,10 @@ sub commit {\n \t\tdie \"Error running git-commit-tree: $?\\n\" if $?;\n \t}\n \n+\tif (not defined $cid) {\n+\t\t$cid = $branches{\"/\"}{\"LAST\"};\n+\t}\n+\n \tif(not defined $dest) {\n \t\tprint \"... no known parent\\n\" if $opt_v;\n \t} elsif(not $tag) {\n@@ -664,6 +668,7 @@ sub commit {\n \t\t# the tag was 'complex', i.e. did not refer to a \"real\" revision\n \n \t\t$dest =~ tr/_/\\./ if $opt_u;\n+\t\t$branch = $dest;\n \n \t\tmy $pid = open2($in, $out, 'git-mktag');\n \t\tprint $out (\"object $cid\\n\".\n---\n0.99.9.GIT\n"}]}