diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2021-08-19 11:26:04 +0100 |
---|---|---|
committer | Colm Donelan <Colm.Donelan@arm.com> | 2021-08-19 11:26:04 +0100 |
commit | 5ed3bc54bcce81dc27d73171a417a4c7fa8698f3 (patch) | |
tree | 4ac0b8626ea8bd9e7480cf3811d496e074d0c07d /scripts | |
parent | 988af10e1125d0ddb0ffcf76d7f1919ba2c0edcd (diff) | |
download | armnn-5ed3bc54bcce81dc27d73171a417a4c7fa8698f3.tar.gz |
Updating get_compute_library.sh to handle ACL release branches.
* CLFRAMEWORKREVISION in this script can be a SHA or a branch
specifier. If it is a branch we need to pull.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Ibc46f803817b2c8983ebb9720417a1bd90679f9e
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get_compute_library.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/get_compute_library.sh b/scripts/get_compute_library.sh index a6f114f0e6..ea67d7eca4 100755 --- a/scripts/get_compute_library.sh +++ b/scripts/get_compute_library.sh @@ -75,6 +75,12 @@ fi git fetch && git fetch https://review.mlplatform.org/ml/ComputeLibrary && git checkout ${CLFRAMEWORKREVISION} AssertZeroExitCode "Fetching and checking out ${CLFRAMEWORKREVISION} failed" +# If the target ACL revision includes a branch we also need to do a pull. +# This generally occurs with a release branch. +if [[ "${CLFRAMEWORKREVISION}" == *"branches"* ]]; then + git pull + AssertZeroExitCode "ACL reference includes a branch but git pull failed." +fi # Set commit hook so we can submit reviews to gerrit (curl -Lo `git rev-parse --git-dir`/hooks/commit-msg https://review.mlplatform.org/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg) |