mirror of
https://github.com/Fishwaldo/meta-pine64.git
synced 2025-03-15 19:41:59 +00:00
Fix error where bad commit ID breaks the build script (#22)
This commit is contained in:
parent
f21fd77a47
commit
0defcf7c92
1 changed files with 6 additions and 2 deletions
8
setup.sh
8
setup.sh
|
@ -50,11 +50,15 @@ do
|
||||||
if [ ! -d layers/$layer/.git ]
|
if [ ! -d layers/$layer/.git ]
|
||||||
then
|
then
|
||||||
echo "Cloning $layer"
|
echo "Cloning $layer"
|
||||||
git clone -q $repo layers/$layer && cd layers/$layer && git checkout -q $branch && git checkout -q $srcrev && cd ../..
|
git clone -q $repo layers/$layer && cd layers/$layer
|
||||||
|
git checkout -q $branch && git checkout -q $srcrev
|
||||||
|
cd ../..
|
||||||
else
|
else
|
||||||
if [ $NOSYNC -eq 0 ]; then
|
if [ $NOSYNC -eq 0 ]; then
|
||||||
echo "Updating $layer to $srcrev"
|
echo "Updating $layer to $srcrev"
|
||||||
cd layers/$layer && git fetch -q && git checkout -q $branch && git checkout -q $srcrev && cd ../..
|
cd layers/$layer
|
||||||
|
git fetch -q && git checkout -q $branch && git checkout -q $srcrev
|
||||||
|
cd ../..
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue