Skip to content

Commit

Permalink
git: force a new branch to be created
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs committed Jun 17, 2024
1 parent 7ea0f55 commit 04f14b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Determine nightly hash
shell: bash
run: |
export rustrevshort="$(rustc --version | awk -F '[\( ]+' '{print $3}')"
export rustrevshort="$(rustc --version | awk -F '[( ]+' '{print $3}')"
echo "rustrevshort=$rustrevshort" >> $GITHUB_OUTPUT
export rustrev="$(curl --silent \
-H "Accept: application/vnd.github+json" \
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
&& git remote add origin https://github.com/rust-lang/rust \
&& git config --local gc.auto 0 \
&& git -c protocol.version=2 fetch --no-tags --prune --progress --recurse-submodules --depth=1 origin $rustrev \
&& git checkout $rustrev \
&& git checkout -B master $rustrev \
&& git submodule sync --recursive \
&& git -c protocol.version=2 submodule update --init --force --depth=1 --recursive \
&& ls \
Expand Down

0 comments on commit 04f14b7

Please sign in to comment.