aboutsummaryrefslogtreecommitdiff
path: root/post-applypatch
diff options
context:
space:
mode:
Diffstat (limited to 'post-applypatch')
-rwxr-xr-xpost-applypatch9
1 files changed, 4 insertions, 5 deletions
diff --git a/post-applypatch b/post-applypatch
index 49e226a..160b21c 100755
--- a/post-applypatch
+++ b/post-applypatch
@@ -46,10 +46,9 @@ if test -n "$message_id" &&
then
echo "$head $message_id" >>"$GIT_DIR"/am.log &&
(
- GIT_NOTES_REF=refs/notes/amlog
- export GIT_NOTES_REF
- git notes add -f -m "Message-Id: $message_id" "$head"
- blob=$(git notes list "$head") &&
- git notes append -m "$head" $blob
+ git show --format="%B" --no-patch HEAD |
+ git interpret-trailers --no-divider \
+ --trailer "Message-Id: $message_id" |
+ git commit --amend --file -
)
fi