summaryrefslogtreecommitdiff
path: root/tcwg-generate-source-cache.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-04-19 13:31:21 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-04-19 13:40:00 +0000
commit2f94e4dfe67ca4c95698c1bab721c6ce8c26588e (patch)
treec8933e7287c5d88bd2cac17d8026ff724855b066 /tcwg-generate-source-cache.sh
parent4f647c9bd5b2313eb6b21e8514d616effa444c75 (diff)
tcwg-generate-source-cache.sh: Workaround ABE's inability to update branches
The "master" branch is now used by gcc7 configuration, and needs to be removed like all other branches. Change-Id: Ibd570ee67dec215cb147d308f9edddb7fedc785b
Diffstat (limited to 'tcwg-generate-source-cache.sh')
-rwxr-xr-xtcwg-generate-source-cache.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcwg-generate-source-cache.sh b/tcwg-generate-source-cache.sh
index 3d0c352e..8b2ce9dd 100755
--- a/tcwg-generate-source-cache.sh
+++ b/tcwg-generate-source-cache.sh
@@ -157,7 +157,9 @@ update_git_repos () {
cd $dir/$repo
# Update and prune local clone
git remote update -p
- # Cleanup stale branches
+ # Move to a detached HEAD
+ git checkout origin/master
+ # Cleanup all branches
git branch | grep -v \* | xargs -r git branch -D
)
done