From 05c4dbc8a8a8a1a78de12ee0b6ea1d3710fb05bf Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Thu, 13 Oct 2011 20:28:10 -0700 Subject: [PATCH 1/2] Adding the `eval` to force variable expansion. Closes #50 --- git-flow-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-flow-release b/git-flow-release index 08f595b2f..bb39d5276 100644 --- a/git-flow-release +++ b/git-flow-release @@ -239,7 +239,7 @@ cmd_finish() { flag sign && opts="$opts -s" [ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'" [ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'" - git tag $opts "$tagname" || \ + eval git tag $opts "$tagname" || \ die "Tagging failed. Please run finish again to retry." fi fi From d0df88da6968c39e5c0422a5634060f559081d26 Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Thu, 13 Oct 2011 21:09:26 -0700 Subject: [PATCH 2/2] Adding the variable expansion to the hotfix. --- git-flow-hotfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-flow-hotfix b/git-flow-hotfix index 261811317..5c079078c 100644 --- a/git-flow-hotfix +++ b/git-flow-hotfix @@ -241,7 +241,7 @@ cmd_finish() { flag sign && opts="$opts -s" [ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'" [ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'" - git tag $opts "$VERSION_PREFIX$VERSION" || \ + eval git tag $opts "$VERSION_PREFIX$VERSION" || \ die "Tagging failed. Please run finish again to retry." fi fi