mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
pgit.sh pull: Rebase target branch before merge
Before merging the remote branch, do a rebase. This may fail and prompt conflict resolution, but that seems the canonical outcome for the common use case "interactive make git pull-xxx" with master out-of-sync. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
059cdc0fe7
commit
4431993665
1 changed files with 1 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ clone()
|
|||
run_git -C $p fetch --prune --recurse-submodules=on-demand $remotename $fromref
|
||||
run_git -C $p submodule foreach --recursive 'git fetch --tags -f origin'
|
||||
if [ "$toref" ]; then
|
||||
run_git -C $p rebase $remotename/$fromref $toref
|
||||
run_git -C $p merge --ff-only $remotename/$fromref $toref
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue