Skip to content

Commit b7a9e57

Browse files
committed
copilot feedback.
1 parent 520e25b commit b7a9e57

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/cargo-update-and-push.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ fi
2424

2525
cargo update
2626
cargo test
27-
if git rev-parse "${branch_name}" 2>/dev/null >/dev/null; then
28-
git branch -D "${branch_name}"
29-
fi
30-
git checkout -b "${branch_name}"
27+
git checkout -B "${branch_name}"
3128
git commit -a -m 'Run cargo-update'
3229
git push --set-upstream github HEAD:"${branch_name}"
3330

0 commit comments

Comments
 (0)