Skip to content

Commit 6f638f1

Browse files
committed
fix: set upstream when pushing branch
1 parent b086102 commit 6f638f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/dev/update-vscode.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ main() {
8585
if [[ -z $(git ls-remote --heads origin "$CURRENT_BRANCH") ]]; then
8686
echo "Doesn't look like you've pushed this branch to remote"
8787
echo -e "Pushing now using: git push origin $CURRENT_BRANCH\n"
88-
git push origin "$CURRENT_BRANCH"
88+
# Note: we need to set upstream as well or the gh pr create step will fail
89+
# See: https://github.com/cli/cli/issues/575
90+
git push -u origin "$CURRENT_BRANCH"
8991
fi
9092

9193
echo "Going to try to update vscode for you..."

0 commit comments

Comments
 (0)