aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-hooks/commit-msg')
-rwxr-xr-xscripts/git-hooks/commit-msg4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg
index bdea8c38d..769cd1a50 100755
--- a/scripts/git-hooks/commit-msg
+++ b/scripts/git-hooks/commit-msg
@@ -24,7 +24,7 @@ my @valid = qw(
sum sync tac tail tee test timeout touch tr true truncate tsort
tty uname unexpand uniq unlink uptime users vdir wc who whoami yes
- all copy gnulib tests maint doc build scripts sha\*sum digest
+ all copy getlimits gnulib tests maint doc build scripts sha\*sum
);
my $v_or = join '|', @valid;
my $valid_regex = qr/^(?:$v_or)$/;
@@ -49,7 +49,7 @@ sub re_edit($)
warn "Interrupt (Ctrl-C) to abort...\n";
- system 'sh', '-c', "$editor $log_file";
+ system 'sh', '-c', "$editor $log_file </dev/tty >/dev/tty 2>&1";
($? & 127) || ($? >> 8)
and die "$ME: $log_file: the editor ($editor) failed, aborting\n";
}