summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2023-04-04 21:32:52 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2023-04-04 21:32:58 -0700
commitc484bd393e7609933b2729f2bcb4276cb0742364 (patch)
treefa6a21657bb495264e609b97249d1dfd3b1b1f0c
parentf6374c8308ba9749e3784ca7469b11d297beb718 (diff)
downloadgjs-c484bd393e7609933b2729f2bcb4276cb0742364.tar.gz
CI: Fix case where upstream base branch already exists
-rwxr-xr-xtest/test-ci.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 0905340f..757dc02e 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -48,7 +48,7 @@ do_Get_Upstream_Base () {
git fetch --depth=30 --no-tags upstream "$base_branch"
fi
- git branch ci-upstream-base-branch FETCH_HEAD
+ git branch -f ci-upstream-base-branch FETCH_HEAD
# Work out the newest common ancestor between the detached HEAD that this CI
# job has checked out, and the upstream target branch (which will typically