]> granicus.if.org Git - curl/commitdiff
log2changes.pl: fix the Version output
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Jun 2012 21:49:14 +0000 (23:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Jun 2012 21:50:00 +0000 (23:50 +0200)
Previously it could easily wrongly get repeated

log2changes.pl

index a92d939b3f3ef1eb6c74ee2786eee714f24c30f9..667daabf0b66ecec2392abe17ac4a57aea06c3be 100755 (executable)
@@ -35,8 +35,6 @@ while(<STDIN>) {
         if ($ref =~ /refs\/tags\/curl-([0-9_]*)/) {
             $tag = $1;
             $tag =~ tr/_/./;
-        } else {
-            $tag = '';
         }
     }
     elsif($l =~ /^Author: *(.*) +</) {
@@ -54,6 +52,7 @@ while(<STDIN>) {
             # Version entries have a special format
             print "\nVersion " . $tag." ($date)\n";
             $oldc = "";
+            $tag = "";
         }
         if($a ne $c) {
             $extra=sprintf("\n- [%s brought this change]\n\n  ", $a);