Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
build-release-tarball: Use require_clean_work_tree helper.
Anders Kaseorg7b38e7c15736
diff --git a/tools/build-release-tarball b/tools/build-release-tarballindex c7c2240ce68..c8e81085d31 100755--- a/tools/build-release-tarball+++ b/tools/build-release-tarball@@ -1,6 +1,9 @@#!/usr/bin/env bashset -eu+# shellcheck source=lib/git-tools.bash+. "$(dirname "$0")"/lib/git-tools.bash+usage() {echo "Usage: $0 <ZULIP_VERSION>" >&2exit 1@@ -26,19 +29,11 @@ fiversion="$1"prefix="zulip-server-$version"+require_clean_work_tree 'build a release tarball'+set -xGITID=$(git rev-parse HEAD)-if ! git diff --exit-code >/dev/null; then- set +x- echo "ERROR: tarballs builds are based on a commit hash so your changes "- echo "will not be included; you should commit or stash them based on "- echo "what you want and then try again."- echo- git diff- exit 1-fi-umask 022TMPDIR=$(mktemp -d)