Add sanity check to tools/import_srcdist.

tools/import_srcdist:
    Check with "git status" that all files in the workspace have been
    added, not ignored.
This commit is contained in:
Peter Wang
2022-01-28 10:43:05 +11:00
committed by Julien Fischer
parent f0c8565553
commit 8a1c70e358

View File

@@ -51,5 +51,10 @@ git checkout --detach "$initialcommit"
git clean -fdxq .
tar xf "$archive" --strip-components=1
git add -f .
if git status --porcelain --ignored | grep -v '^A '
then
echo "Some files were not added." >&2
exit 1
fi
git commit -q -m "Imported $basename"
git tag -a -m "Tag $version" "$tag"