[PATCH] apply-pull: Never rebase git pull, never rebase
Rodrigo Vivi
rodrigo.vivi at intel.com
Wed Jan 12 16:50:11 UTC 2022
git pull of git version 2.31.1 apparently prefers rebase
over merge.
Then it messes up with our commits. Specially with the top
one where dim expects a merge commit and it amends from and
link info.
No, git pull --rebase=merges didn't help and with a risk of
changing behavior for others and also messing with commit ids.
So, let's inform git pull that we really don't want a rebase
here.
Cc: Jani Nikula <jani.nikula at intel.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Zhi Wang <zhi.a.wang at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
dim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dim b/dim
index bbe9308..fb0dce9 100755
--- a/dim
+++ b/dim
@@ -1188,7 +1188,7 @@ function dim_apply_pull
checkpatch_commit_push_range 0 "HEAD..FETCH_HEAD"
- if ! $DRY git pull --no-ff $pull_branch ; then
+ if ! $DRY git pull --no-rebase --no-ff $pull_branch ; then
if ! check_conflicts "$pull_branch" ; then
echoerr "Please resolve and then commit normally using git"
--
2.31.1
More information about the dim-tools
mailing list