fix for git commit id from branch
. git would take remote repo HEAD otherwise
This commit is contained in:
parent
ee305598c5
commit
d25ded6d3d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue