]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7989 #resolve [Fix bugs in fixbug.pl]
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Aug 2015 23:28:38 +0000 (18:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Aug 2015 23:28:38 +0000 (18:28 -0500)
support-d/utils/fixbug.pl

index 6e5f80d959ab0ff028f2fa73213d74953f7c245e..958f45af5878f82bd82dd667daeb6aa5634e8838 100755 (executable)
@@ -1,3 +1,4 @@
+#!/usr/bin/perl
 
 use XML::Simple;
 use Data::Dumper;
@@ -31,7 +32,7 @@ if ($ARGV[0] eq "edit") {
   shift;
   $auto = 0;
   open T, ">/tmp/$bug.tmp";
-  print T "#resolve [$sum]\n\n";
+  print T "$bug #resolve [$sum]\n\n";
   close T;
 }
 
@@ -39,7 +40,7 @@ my $args = join(" ", @ARGV);
 my $gitcmd;
 
 if ($auto) {
-  $gitcmd = "git commit $args -m \"#resolve [$sum]\"";
+  $gitcmd = "git commit $args -m \"$bug #resolve [$sum]\"";
 } else {
   $gitcmd = "git commit $args -t /tmp/$bug.tmp";
 }