Skip to content

Commit 9b07df4

Browse files
committed
setlocalversion: remove '-dirty' suffix for uncommitted changes in git and mercurial
1 parent 3c13530 commit 9b07df4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/setlocalversion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ scm_version()
9494
git --no-optional-locks status -uno --porcelain 2>/dev/null ||
9595
git diff-index --name-only HEAD
9696
} | grep -qvE '^(.. )?scripts/package'; then
97-
printf '%s' -dirty
97+
printf '%s' ''
9898
fi
9999

100100
# All done with git
@@ -118,7 +118,7 @@ scm_version()
118118
# Are there uncommitted changes?
119119
# These are represented by + after the changeset id.
120120
case "$hgid" in
121-
*+|*+\ *) printf '%s' -dirty ;;
121+
*+|*+\ *) printf '%s' '' ;;
122122
esac
123123

124124
# All done with mercurial

0 commit comments

Comments
 (0)