Update libecl pr build

This commit is contained in:
Joakim Hove
2019-07-04 20:15:07 +02:00
parent 8740a8dc1a
commit 7f521652f4

View File

@@ -151,14 +151,19 @@ function clone_module {
if [ "$1" == "libecl" ]
then
git remote add origin https://github.com/equinor/$1
git fetch origin master
git checkout $2
git checkout -b branch_to_build
if [[ "$2" == 7abee4f1* ]]
then
git fetch origin master
git checkout $2
git branch branch_to_build
else
git fetch --depth 1 origin $2:branch_to_build
fi
else
git remote add origin https://github.com/OPM/$1
git fetch --depth 1 origin $2:branch_to_build
git checkout branch_to_build
fi
git checkout branch_to_build
git log HEAD -1 | cat
test $? -eq 0 || exit 1
popd