Fix scripts/setlocalversion with tagged git commit
authorNico Schottelius <nico-linux-20090330@schottelius.org>
Sat, 16 May 2009 12:00:56 +0000 (14:00 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 19 May 2009 21:11:34 +0000 (14:11 -0700)
commit33252572e727ccdcc54efdb67157e7ab3d6942db
tree0c346eccdeec7563402c9fa5ec417a8d57bde1ff
parent279e677faa775ad16e75c32e1bf4a37f8158bc61
Fix scripts/setlocalversion with tagged git commit

Produce correct output for
- tagged commit (v2.6.30-rc6)
- past tagged commit (v2.6.30-rc5-299-g7c7327d)
- no tag

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/setlocalversion