From 0949bd1df959bbdb249ae634bd38a899cd36df10 Mon Sep 17 00:00:00 2001 From: Rostislav Krasny Date: Mon, 10 Jun 2024 12:40:06 +0100 Subject: [PATCH] src-release.sh: don't take untracked files into account in the uncommitted changes check --- src-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-release.sh b/src-release.sh index 02791ce1d01..0a58c143155 100755 --- a/src-release.sh +++ b/src-release.sh @@ -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 -- 2.47.2