Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation should fail if wrong nim_commit was specified #101

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/build_nim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ nim_needs_rebuilding() {
git remote add extra "${NIM_COMMIT_REPO}"
fi
git fetch --all --tags --quiet
git checkout -q "${NIM_COMMIT}"
git checkout -q "${NIM_COMMIT}" ||
{ echo "Error: wrong NIM_COMMIT specified:'${NIM_COMMIT}'"; exit 1; }
fi
# In case the local branch diverged and a fast-forward merge is not possible.
git fetch || true
Expand Down
Loading