Explorar o código

Update release script to abort if there are local changes. Prevents accidentally tagging a .dev0 changeset for release.

Dan Helfman %!s(int64=3) %!d(string=hai) anos
pai
achega
ae25386336
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      scripts/release

+ 5 - 0
scripts/release

@@ -21,6 +21,11 @@ if [[ $version =~ .*dev* ]]; then
     exit 1
 fi
 
+if ! git diff-index --quiet HEAD -- ; then
+    echo "Refusing to release with local changes:"
+    git status --porcelain
+fi
+
 git tag $version
 git push origin $version
 git push github $version