summaryrefslogtreecommitdiff
path: root/build-aux/git-hooks/commit-msg-files.awk
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/git-hooks/commit-msg-files.awk')
-rw-r--r--build-aux/git-hooks/commit-msg-files.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/git-hooks/commit-msg-files.awk b/build-aux/git-hooks/commit-msg-files.awk
index 2117681343f..5c9b70a5de5 100644
--- a/build-aux/git-hooks/commit-msg-files.awk
+++ b/build-aux/git-hooks/commit-msg-files.awk
@@ -33,7 +33,7 @@
function get_commit_changes(commit_sha, changes, cmd, i, j, len, \
bits, filename) {
# Collect all the files touched in the specified commit.
- cmd = ("git log -1 --name-status --format= " commit_sha)
+ cmd = ("git show --name-status --first-parent --format= " commit_sha)
while ((cmd | getline) > 0) {
for (i = 2; i <= NF; i++) {
len = split($i, bits, "/")