[TopGit PATCH 1/2] Fix generated Subject: line in .topmsg
$1 is unset after parsing all arguments, so use $name instead.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
tg-create.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tg-create.sh b/tg-create.sh
index d196e4f..0bf329c 100644
--- a/tg-create.sh
+++ b/tg-create.sh
@@ -107,7 +107,7 @@ author_addr="${author%> *}>"
! header="$(git config topgit.to)" || echo "To: $header"
! header="$(git config topgit.cc)" || echo "Cc: $header"
! header="$(git config topgit.bcc)" || echo "Bcc: $header"
- echo "Subject: [PATCH] $1"
+ echo "Subject: [PATCH] $name"
echo
cat <<EOT
<patch description>
--
tg: (24367cc..) t/fix-subject-line-in-.topmsg (depends on: master)