mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-26 12:15:26 +00:00
fix: set upstream when pushing branch
This commit is contained in:
parent
b0861029c0
commit
6f638f1329
@ -85,7 +85,9 @@ main() {
|
||||
if [[ -z $(git ls-remote --heads origin "$CURRENT_BRANCH") ]]; then
|
||||
echo "Doesn't look like you've pushed this branch to remote"
|
||||
echo -e "Pushing now using: git push origin $CURRENT_BRANCH\n"
|
||||
git push origin "$CURRENT_BRANCH"
|
||||
# Note: we need to set upstream as well or the gh pr create step will fail
|
||||
# See: https://github.com/cli/cli/issues/575
|
||||
git push -u origin "$CURRENT_BRANCH"
|
||||
fi
|
||||
|
||||
echo "Going to try to update vscode for you..."
|
||||
|
Loading…
Reference in New Issue
Block a user