Skip to content

Commit a842469

Browse files
committed
Adjust for rust-lang/rust default branch rename
1 parent 9d292ca commit a842469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rustup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ case $1 in
4343

4444
cg_clif=$(pwd)
4545
pushd ../rust
46-
git pull origin master
46+
git pull origin main
4747
branch=sync_cg_clif-$(date +%Y-%m-%d)
4848
git checkout -b "$branch"
4949
"$cg_clif/git-fixed-subtree.sh" pull --prefix=compiler/rustc_codegen_cranelift/ https://github.com/rust-lang/rustc_codegen_cranelift.git main
@@ -63,7 +63,7 @@ case $1 in
6363

6464
cg_clif=$(pwd)
6565
pushd ../rust
66-
git fetch origin master
66+
git fetch origin main
6767
git -c advice.detachedHead=false checkout "$RUST_VERS"
6868
"$cg_clif/git-fixed-subtree.sh" push --prefix=compiler/rustc_codegen_cranelift/ "$cg_clif" sync_from_rust
6969
popd

0 commit comments

Comments
 (0)