sync-upstream: Use --autostash to handle uncommitted changes
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.
This commit is contained in:
@@ -97,7 +97,7 @@ echo "$BODY"
|
|||||||
echo "-----------------------------------"
|
echo "-----------------------------------"
|
||||||
# Create branch from PR commit and create PR
|
# Create branch from PR commit and create PR
|
||||||
git checkout master
|
git checkout master
|
||||||
git pull
|
git pull --autostash
|
||||||
git checkout -b temp-merge-"$PRNUM"
|
git checkout -b temp-merge-"$PRNUM"
|
||||||
|
|
||||||
# Escape single quote
|
# Escape single quote
|
||||||
|
|||||||
Reference in New Issue
Block a user