diff options
Diffstat (limited to 'build-aux/git-hooks/commit-msg-files.awk')
| -rw-r--r-- | build-aux/git-hooks/commit-msg-files.awk | 2 |
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 @@ | |||
| 33 | function get_commit_changes(commit_sha, changes, cmd, i, j, len, \ | 33 | function get_commit_changes(commit_sha, changes, cmd, i, j, len, \ |
| 34 | bits, filename) { | 34 | bits, filename) { |
| 35 | # Collect all the files touched in the specified commit. | 35 | # Collect all the files touched in the specified commit. |
| 36 | cmd = ("git log -1 --name-status --format= " commit_sha) | 36 | cmd = ("git show --name-status --first-parent --format= " commit_sha) |
| 37 | while ((cmd | getline) > 0) { | 37 | while ((cmd | getline) > 0) { |
| 38 | for (i = 2; i <= NF; i++) { | 38 | for (i = 2; i <= NF; i++) { |
| 39 | len = split($i, bits, "/") | 39 | len = split($i, bits, "/") |