diff options
author | Rostislav Krasny <rostiprodev@gmail.com> | 2024-06-10 12:40:06 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-06-10 12:40:06 +0100 |
commit | 0949bd1df959bbdb249ae634bd38a899cd36df10 (patch) | |
tree | 7545251e629406ada5574deeae3b690b665ee412 | |
parent | c41020942b94ea7c5a58de4fed644826e8f0b509 (diff) | |
download | binutils-0949bd1df959bbdb249ae634bd38a899cd36df10.zip binutils-0949bd1df959bbdb249ae634bd38a899cd36df10.tar.gz binutils-0949bd1df959bbdb249ae634bd38a899cd36df10.tar.bz2 |
src-release.sh: don't take untracked files into account in the uncommitted changes check
-rwxr-xr-x | src-release.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-release.sh b/src-release.sh index 02791ce..0a58c14 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 |