]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
src-release.sh: don't take untracked files into account in the uncommitted changes...
authorRostislav Krasny <rostiprodev@gmail.com>
Mon, 10 Jun 2024 11:40:06 +0000 (12:40 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 10 Jun 2024 11:40:06 +0000 (12:40 +0100)
src-release.sh

index 02791ce1d0189fb3e1059c525fb8c2d7741b6b1e..0a58c143155302cd0e8a812748e14d28fb1cd1cc 100755 (executable)
@@ -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