From: Rostislav Krasny Date: Mon, 10 Jun 2024 11:40:06 +0000 (+0100) Subject: src-release.sh: don't take untracked files into account in the uncommitted changes... X-Git-Tag: binutils-2_43~465 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0949bd1df959bbdb249ae634bd38a899cd36df10;p=thirdparty%2Fbinutils-gdb.git src-release.sh: don't take untracked files into account in the uncommitted changes check --- 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