kbuild: fix scripts/setlocalversion to avoid erroneous -dirty tag
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Nov 2007 01:53:00 +0000 (21:53 -0400)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:37 +0000 (23:14 +0100)
commit4e7434ff028c4280bed620f28fdbf9f4d77d77ce
tree63ce069f3a0dac118e70c46be3b3db5c81660094
parentd882421f4e08ddf0a94245cdbe516db260aa6f41
kbuild: fix scripts/setlocalversion to avoid erroneous -dirty tag

If git's index file is out of date, and some files have been touched
such that their timestamp doesn't what is in the index, "git
diff-index HEAD" may show that a particular file is dirty, when in
fact it really isn't.  Running "git update-index" will update the
index to avoid these false positives.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/setlocalversion