Skip to content

Commit

Permalink
Error wrapper script on unclean local state (#1115)
Browse files Browse the repository at this point in the history
With this commit we exit the Rally wrapper script with an error if the
local working copy contains uncommitted files. This avoids skipping
automatic updates silently if uncommitted files are unintentionally
present. Users that still want to continue running can do so by
specifying `--skip-update`.

Closes #911
  • Loading branch information
danielmitterdorfer authored Nov 19, 2020
1 parent 6ed813d commit acde0b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ then
#else
# offline - skipping update
fi
# else
# Uncommitted changes - don't upgrade, just run
else
>&2 echo "There are uncommitted changes. Please cleanup your working copy or specify --skip-update."
exit 1
fi
#else -> No self update
fi
Expand Down

0 comments on commit acde0b9

Please sign in to comment.