Move the pull after the checkout
@@ -45,11 +45,9 @@ function fetch_llvm {
else
# Discard all differences with release/9.x branch
cd $llvm_co_dir;
+ git checkout release/9.x || eexit "checking out git branch failed"
git pull || eexit "error doing a git pull"
- git checkout release/9.x ||
- eexit "checking out git branch failed"
- git reset --hard HEAD ||
- eexit "resetting --hard HEAD failed"
+ git reset --hard HEAD || eexit "resetting --hard HEAD failed"
cd ..;
fi
}
