Merge pull request #98 from creynders/patch-1

git-release: made `git commit` optional and added `-a -m` switches to `tag`
This commit is contained in:
TJ Holowaychuk 2012-04-29 10:33:03 -07:00
commit 3ebb6bc45b

View file

@ -11,8 +11,8 @@ hook() {
if test $# -gt 0; then
hook pre-release
echo "... releasing $1"
git commit -a -m "Release $1" \
&& git tag $1 \
git commit -a -m "Prepared release $1"
git tag $1 -a -m "Release $1"\
&& git push \
&& git push --tags \
&& hook post-release \