Skip to content

Commit 5591120

Browse files
authored
CI builds: Checkout main branch in a robust way (readthedocs#9793)
Adds an -f switch to force resetting the branch in cases where Circle CI has created it
1 parent c8f9b85 commit 5591120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- run: git submodule sync
4343
- run: git submodule update --init
4444
- run: git fetch origin main # needed for comparisson in pre-commit
45-
- run: git branch --track main origin/main # needed for comparisson in pre-commit
45+
- run: git branch -f --track main origin/main # needed for comparisson in pre-commit
4646
- run: pip install --user 'tox<5'
4747
- run: tox -e pre-commit
4848
- run: tox -e migrations

0 commit comments

Comments
 (0)