Skip to content

Commit c6eb876

Browse files
committed
Meta/V: translate dirty->with changes consistently
1 parent 4037b51 commit c6eb876

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

V

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ do
2626
:
2727
elif version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)\.dirty$')
2828
then
29-
dirty=t
29+
dirty=" (with changes)"
3030
elif version=v$(expr "$installed" : \
3131
'git version \(.*\)\.rc[0-9]*$')
3232
then
@@ -41,16 +41,18 @@ do
4141
if test "z$version" = "z$revision"
4242
then
4343
in= out=
44-
installed=${dirty:+" (with changes)"}
44+
installed=$dirty
4545
elif test -z "$version"
4646
then
4747
in="" out=""
4848
installed=" none"
4949
else
5050
installed=$(git describe $version)
5151
case "$dirty" in
52-
t)
53-
installed="$installed.dirty"
52+
'')
53+
;;
54+
?*)
55+
installed="$installed$dirty"
5456
esac
5557
in="" out="" installed=" $installed"
5658
fi

0 commit comments

Comments
 (0)