diff options
-rwxr-xr-x | git-format-named-patches.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-format-named-patches.sh b/git-format-named-patches.sh index e311f5f..a5e4f8b 100755 --- a/git-format-named-patches.sh +++ b/git-format-named-patches.sh @@ -13,7 +13,7 @@ IDSstr="$(git log --format="%H" "$1" 2>/dev/null)" mapfile -t IDS <<< "$IDSstr" for id in "${IDS[@]}" ; do PATCH="$(git format-patch -1 --stdout "${id}")" - FN="$(echo "$PATCH" | awk '/^Patch: / {print $2}')" + FN="$(echo "$PATCH" | git interpret-trailers --parse | awk '/^Patch: / {print $2}')" [ -z "$FN" ] && fail "Patch filename not defined" printf "%s" "$PATCH" > "$FN" done |