From a3de7f322233ab2b17ad6a69ea56877e417057cd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 17 Jul 2014 00:25:14 -0700 Subject: [PATCH] Fixing `make release` - amending a tagged commit makes the commit not match the tag. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 22191d19a1..f44fb68595 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ endif release: verify-tag @ OLD_TAG=`git describe --abbrev=0 --tags` && \ - npm version "$(TAG)" && \ replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown && \ - git commit --amend nvm.sh install.sh README.markdown package.json + git commit -m "v$(TAG)" nvm.sh install.sh README.markdown package.json && \ + git tag "v$(TAG)" +