summary refs log tree commit diff
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-06-19 16:48:56 +0000
committeredef <edef@unfathomable.blue>2022-06-19 16:57:30 +0000
commit4474798a6b360ee68beac41dc65565dcd3e956fc (patch)
tree2a1eb5cb90f66d79ad0c09665677a68bb9989f0a
parentc92e98b0847a917a7e436ef738eebb93f51e5de8 (diff)
downloadunf-legacy-4474798a6b360ee68beac41dc65565dcd3e956fc.tar.zst
githooks/commit-msg: use git-interpret-trailers --in-place
Change-Id: I31567a95f4d55e7cee526eb5432201087aaa3a1a
-rwxr-xr-xgithooks/commit-msg3
1 files changed, 1 insertions, 2 deletions
diff --git a/githooks/commit-msg b/githooks/commit-msg
index c4c7736..931a4ad 100755
--- a/githooks/commit-msg
+++ b/githooks/commit-msg
@@ -11,5 +11,4 @@ fi
 git interpret-trailers \
     --if-exists doNothing \
     --trailer "Change-Id:I$change_id" \
-    "$1" > "$1.tmp"
-mv "$1.tmp" "$1"
+    --in-place "$1"