added --always to --describe so that it works for branch checkout like in autobuild.
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Jun 2011 16:46:47 +0000 (11:46 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Jun 2011 16:46:47 +0000 (11:46 -0500)
src/scripts/commitid.sh

index eb400fe471e92a36e2e258b74c3c8adc51f986ae..a382c19843d32fa04d1266c518f8f286e0b7f474 100755 (executable)
@@ -10,7 +10,7 @@ then
     VOLD=`cat VERSION`
 fi
 
-git describe --long --dirty > VERSION.new || touch VERSION.new
+git describe --long --dirty --always > VERSION.new || touch VERSION.new
 
 VNEW=`cat VERSION.new`