src-release.sh: don't take untracked files into account in the uncommitted changes check

This commit is contained in:
Rostislav Krasny
2024-06-10 12:40:06 +01:00
committed by Nick Clifton
parent c41020942b
commit 0949bd1df9

View File

@@ -79,8 +79,8 @@ getver()
clean_sources()
{
# Check that neither staged nor unstaged change remains.
if [ -n "$(git status --porcelain)" ]; then
# Check that neither staged nor unstaged changes of any tracked file remains.
if [ -n "$(git status --porcelain -uno)" ]; then
echo "There are uncommitted changes. Please commit or stash them."
exit 1
fi