Skip to content

Commit 216b2f1

Browse files
Uwe ZeisbergerSam Ravnborg
authored andcommitted
kbuild: append -dirty for updated but uncommited changes
Compare the working copy with the last commit, instead of the index. Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> Acked-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 29b0c89 commit 216b2f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/setlocalversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then
1616
fi
1717

1818
# Are there uncommitted changes?
19-
if git diff-files | read dummy; then
19+
if git diff-index HEAD | read dummy; then
2020
printf '%s' -dirty
2121
fi
2222
fi

0 commit comments

Comments
 (0)