deal with local modifications in the working copy

This commit is contained in:
Ștefan Talpalaru 2021-04-29 01:31:35 +02:00
parent 135e43468f
commit 47b4317888
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ nim_needs_rebuilding() {
fi
pushd "${NIM_DIR}" >/dev/null
git restore .
if ! git checkout -q ${NIM_COMMIT}; then
# Pay the price for a non-default NIM_COMMIT here, by fetching everything.
# (This includes upstream branches and tags that might be missing from our fork.)