diff options
author | Zach van Rijn <me@zv.io> | 2023-12-02 14:57:09 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-12-02 14:57:09 -0600 |
commit | 5a9d1e74ac191636b64f1c2ec77129a003955c98 (patch) | |
tree | 0bd3cd29323d7d69e676d4bfc660cc462860a002 | |
parent | 665a56db000fc5921ef7593d8fef78de7b79024a (diff) | |
download | wallpapers-5a9d1e74ac191636b64f1c2ec77129a003955c98.tar.gz wallpapers-5a9d1e74ac191636b64f1c2ec77129a003955c98.tar.bz2 wallpapers-5a9d1e74ac191636b64f1c2ec77129a003955c98.tar.xz wallpapers-5a9d1e74ac191636b64f1c2ec77129a003955c98.zip |
Require pristine tree. Fix tag bug.
-rwxr-xr-x | prepare | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -137,7 +137,7 @@ done # not prevent someone from being stupid, but they can avoid some # common errors. We want to reduce surprises/ensure consistency. # -VTAG=$(git describe --abbrev=0 2>/dev/null || true); +VTAG=$(git describe --tags --abbrev=0 2>/dev/null || true); if test -z "${VTAG}"; then printf "E: you need to tag at least one commit!\n"; exit 1; @@ -150,6 +150,10 @@ if test $(git ls-remote --tags origin ${VTAG} | wc -l) -eq 0; then printf "E: tag '%s' does not exist on origin!\n" "${VTAG}"; exit 1; fi +if test $(git status --porcelain | wc -l) -gt 0; then + printf "E: tree is not clean; aborting!\n" "${VTAG}"; + exit 1; +fi ## |