scripts: Detect staged files before building release

This commit is contained in:
Marek Siarkowicz
2022-05-18 12:21:43 +02:00
parent c05b9b13a8
commit 6aa934e546

View File

@ -179,7 +179,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