chiark / gitweb /
ref updates: Honour GIT_REFLOG_ACTION everywhere.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jun 2018 17:30:24 +0000 (18:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jun 2018 18:20:54 +0000 (19:20 +0100)
Specifically, every time we call git_update_ref_cmd.

Closes:#901935.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm
debian/changelog

index 2bac485..0a99faa 100644 (file)
@@ -496,6 +496,8 @@ sub git_update_ref_cmd {
     # returns  qw(git update-ref), qw(-m), @_
     # except that message may be modified to honour GIT_REFLOG_ACTION
     my $msg = shift @_;
+    my $rla = $ENV{GIT_REFLOG_ACTION};
+    $msg = "$rla: $msg" if length $rla;
     return qw(git update-ref -m), $msg, @_;
 }
 
index 763c427..70d600f 100644 (file)
@@ -1,6 +1,7 @@
 dgit (5.3~) unstable; urgency=medium
 
-  * 
+  Bugfixes:
+  * Honour GIT_REFLOG_ACTION everywhere.  Closes:#901935.
 
  --