mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
pgit.sh: Pass --autostash to rebase
Calling make git-pull-xxx from a projects directory stops iterating projects if one has a dirty workspace. Calling --autostash fixes that. With this in place, a failed rebase leaves the local changes behind stashed. So, after manually fixing the rebase, the stash needs to be manually reapplied. The commands that led up to the failure are logged right before, so I have hope that this is learnable, and not too much of a footgun. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
05378a6e7e
commit
1e9ab195a6
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ clone()
|
||||||
run_git -C $p fetch --prune --recurse-submodules=on-demand $remotename $fromref
|
run_git -C $p fetch --prune --recurse-submodules=on-demand $remotename $fromref
|
||||||
run_git -C $p submodule foreach --recursive 'git fetch --tags -f origin'
|
run_git -C $p submodule foreach --recursive 'git fetch --tags -f origin'
|
||||||
if [ "$toref" ]; then
|
if [ "$toref" ]; then
|
||||||
run_git -C $p rebase $remotename/$fromref $toref
|
run_git -C $p rebase --autostash $remotename/$fromref $toref
|
||||||
run_git -C $p merge --ff-only $remotename/$fromref $toref
|
run_git -C $p merge --ff-only $remotename/$fromref $toref
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue