kbuild: fix scripts/setlocalversion with git
authorNico Schottelius <nico-linux-20090330@schottelius.org>
Sat, 25 Apr 2009 07:48:39 +0000 (09:48 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 1 May 2009 08:54:04 +0000 (10:54 +0200)
When using trees like wireless-testing, which have untagged tags,
scripts/setlocalversion does not display any git indication for
localversion.

This patch fixes it: If git is available, but no usable tag is found,
it uses -g${head}. It skips the detection of unanottated tags via
git name-rev.

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

No differences found