Make the script for getting the compute library more robust
authorMatteo Martincigh <matteo.martincigh@arm.com>
Thu, 23 May 2019 15:03:55 +0000 (16:03 +0100)
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Thu, 23 May 2019 17:21:51 +0000 (17:21 +0000)
 * Added an extra git fetch without specifying the remote to
   allow fetching from wathever remote one is using
 * Fixes a failure in our setup agents jobs

Change-Id: I64b034eec5fba5c8b113e89b5bb5724fb978e511
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
scripts/get_compute_library.sh

index 9312504..39de20c 100755 (executable)
@@ -73,7 +73,7 @@ if [ ! -z "$CLFRAMEWORK_SHA" ]; then
     CLFRAMEWORKREVISION=$CLFRAMEWORK_SHA
 fi
 
-git fetch https://review.mlplatform.org/ml/ComputeLibrary && git checkout ${CLFRAMEWORKREVISION}
+git fetch && git fetch https://review.mlplatform.org/ml/ComputeLibrary && git checkout ${CLFRAMEWORKREVISION}
 AssertZeroExitCode "Fetching and checking out ${CLFRAMEWORKREVISION} failed"
 
 # Set commit hook so we can submit reviews to gerrit