From 4474798a6b360ee68beac41dc65565dcd3e956fc Mon Sep 17 00:00:00 2001 From: edef Date: Sun, 19 Jun 2022 16:48:56 +0000 Subject: githooks/commit-msg: use git-interpret-trailers --in-place Change-Id: I31567a95f4d55e7cee526eb5432201087aaa3a1a --- githooks/commit-msg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'githooks') 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" -- cgit 1.4.1