test: check where the Nim sources were downloaded

This commit is contained in:
Roman 2023-12-13 10:20:10 +01:00
parent f368a76377
commit 7638bcc9cd
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ nim_needs_rebuilding() {
# support old Git versions, like the one from Ubuntu-18.04 # support old Git versions, like the one from Ubuntu-18.04
git restore . 2>/dev/null || git reset --hard git restore . 2>/dev/null || git reset --hard
if ! git checkout -q ${NIM_COMMIT} 2>/dev/null; then if ! git checkout -q ${NIM_COMMIT} 2>/dev/null; then
echo "Downloading Nim sources..."
echo $(pwd)
# Pay the price for a non-default NIM_COMMIT here, by fetching everything. # 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.) # (This includes upstream branches and tags that might be missing from our fork.)
git remote add upstream https://github.com/nim-lang/Nim git remote add upstream https://github.com/nim-lang/Nim