scripts: Detect staged files before building release

This commit is contained in:
Marek Siarkowicz
2022-05-18 12:21:43 +02:00
parent 57515f23f7
commit 63e47656e0

View File

@@ -181,7 +181,7 @@ main() {
# Verify the clean working tree
# shellcheck disable=SC2155
local diff="$(git diff --stat)"
local diff="$(git diff HEAD --stat)"
if [[ "${diff}" != '' ]]; then
log_error "Error: Expected clean working tree, but 'git diff --stat' reported: ${diff}"
exit 1