Skip to content

Commit

Permalink
sync-upstream: Use --autostash to handle uncommitted changes
Browse files Browse the repository at this point in the history
This makes it possible to use sync-upstream with uncommitted changes. (This
is in particular helpful when working on the script itself.)

Without this commit, git pull will fail due to the uncommitted changes.
  • Loading branch information
real-or-random committed Apr 11, 2023
1 parent 1d25608 commit 13c438c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/sync-upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ echo "$BODY"
echo "-----------------------------------"
# Create branch from PR commit and create PR
git checkout master
git pull
git pull --autostash
git checkout -b temp-merge-"$PRNUM"

# Escape single quote
Expand Down

0 comments on commit 13c438c

Please sign in to comment.