Skip to content

Commit

Permalink
kbuild: fix false positive -dirty tag caused by make-kpkg
Browse files Browse the repository at this point in the history
make-kpkg modifies scripts/package/Makefile and deletes
scripts/package/builddeb as part of its build process.  Ignore these
changes so the tree isn't marked as -dirty, when it is just an
artifact of make-kpkg.  (make-kpkg clean restores the files to their
original state, and these helper scripts won't affect the final
compiled kernel in any way.)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Theodore Ts'o authored and Sam Ravnborg committed Jan 28, 2008
1 parent 4e7434f commit b052ce4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then

# Are there uncommitted changes?
git update-index --refresh --unmerged > /dev/null
if git diff-index HEAD | read dummy; then
if git diff-index --name-only HEAD | grep -v "^scripts/package" \
| read dummy; then
printf '%s' -dirty
fi

Expand Down

0 comments on commit b052ce4

Please sign in to comment.