Skip to content
Snippets Groups Projects
Commit 28c9e96f authored by brizental's avatar brizental Committed by morgan
Browse files

fixup! Add CI for Base Browser

Fix issue that prevents the create-bundle job from succeeding when there
is already a branch with the same name as the one being pushed to in the
CI -- mostly happens on protected branches.
parent 668cc010
Branches
No related tags found
No related merge requests found
......@@ -32,11 +32,14 @@ create-bundle:
script:
# DEBUG: Check repository status.
- git status
# Switch to a named branch.
- git switch -c $BRANCH_NAME
# DEBUG: Check branches in repository
- git branch
# Force switch to a named branch. We force it in case there is already
# a branch with the same name from previous runs.
- git switch -C $BRANCH_NAME
# Create a git bundle -- this will generate the app.bundle file,
# which can be used as a git remote for offline fetching.
- git bundle create app.bundle --all
- git bundle create app.bundle $BRANCH_NAME
# Retain the SHA of the base of this shallow repository.
- cat .git/shallow > shallow.txt
# DEBUG: Check sizes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment