chiark / gitweb /
dgit-badcommit-fixup: Put our version in our rewrite map commit message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 20:28:01 +0000 (20:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 20:30:20 +0000 (20:30 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit-badcommit-fixup

index a761eb3..c119c4a 100755 (executable)
@@ -25,6 +25,8 @@ use POSIX;
 use IPC::Open2;
 use Data::Dumper;
 
 use IPC::Open2;
 use Data::Dumper;
 
+our $our_version = 'UNRELEASED'; ###substituted###
+
 my $real;
 
 foreach my $a (@ARGV) {
 my $real;
 
 foreach my $a (@ARGV) {
@@ -193,9 +195,11 @@ sub edit_rewrite_map ($) {
        runcmd qw(git add map);
     }
 
        runcmd qw(git add map);
     }
 
-    runcmd qw(git commit -q), 
-       qw(-m), 'dgit-badcommit-fixup',
-       qw(map);
+    runcmd qw(git commit -q), qw(-m), <<END, qw(map);
+dgit-badcommit-fixup
+
+[dgit-badcommit-fixup $our_version]
+END
 
     $!=0; $?=0;
     my $new = `git rev-parse HEAD`;
 
     $!=0; $?=0;
     my $new = `git rev-parse HEAD`;