fix for git commit id from branch

. git would take remote repo HEAD otherwise
This commit is contained in:
Ben Gras 2012-02-21 01:20:00 +01:00
parent ee305598c5
commit d25ded6d3d

View file

@ -206,8 +206,8 @@ then
if [ "$REVTAG" ] if [ "$REVTAG" ]
then echo "Doing checkout of $REVTAG." then echo "Doing checkout of $REVTAG."
(cd $srcdir && git checkout $REVTAG ) (cd $srcdir && git checkout $REVTAG )
else REVTAG=`(cd $srcdir && git show-ref HEAD -s10)` else REVTAG=`(cd $srcdir && git rev-parse --short HEAD)`
echo "Retrieved repository head is $REVTAG." echo "Retrieved repository head in $srcdir is $REVTAG."
fi fi
if [ $MINIMAL -ne 0 ] if [ $MINIMAL -ne 0 ]
then rm -r $srcdir/.git then rm -r $srcdir/.git