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

Nick Clifton nickc@sourceware.org
Mon Jun 10 11:40:27 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0949bd1df959bbdb249ae634bd38a899cd36df10

commit 0949bd1df959bbdb249ae634bd38a899cd36df10
Author: Rostislav Krasny <rostiprodev@gmail.com>
Date:   Mon Jun 10 12:40:06 2024 +0100

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

Diff:
---
 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


More information about the Binutils-cvs mailing list