From 8896a61c08525675956661827dfb21f1622d5a8b Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Wed, 3 Sep 2014 15:12:19 +0200 Subject: [PATCH] Change release script to amend commit. Requires further work to properly handle the Git branching model as described by http://nvie.com/posts/a-successful-git-branching-model --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 7f0cda0..c852b76 100755 --- a/release.sh +++ b/release.sh @@ -19,7 +19,7 @@ tar cvzf $FILENAME gpl-*.txt README.md NEWS *.php --exclude '*~' --transform 's, if [[ $? -eq 0 ]]; then # Add the tarball to the repository, commit it, then tag the commit and push to origin. git add $FILENAME - git commit -m "Release version $1" + git commit -m --amend git tag -a $1 -m "Version $1." git push git push --tags