git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/4] Fix 'pull --rebase --recurse-submodules' when local and upstream branches have no fork-point

From
Philippe Blain via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 14, 2020, 00:34 UTC
Message-ID
<pull.789.git.1605314085.gitgitgadget@gmail.com>

This series fixes a bug in 'git pull --rebase --recurse-submodules' when the current branch and the remote-tracking branch we are pulling from have no fork-point (git merge-base --fork-point refs/remotes/<remote>/<upstream> <current-branch> returns empty), resulting in a misleading and fatal error message:

fatal: cannot rebase with locally recorded submodule modifications
This is patch 4/4.

Patch 1/4 is a preparatory refactoring, and patches 2-3 add comments to t5552-pull-submodules to describe 'pull --rebase --recurse-submodules' tests a little better.

Philippe Blain (4):
  pull --rebase: compute rebase arguments in separate function
  t5572: add notes on a peculiar test
  t5572: describe '--rebase' tests a little more
  pull: check for local submodule modifications with the right range
 builtin/pull.c            | 48 ++++++++++++++++++++++++---------
 t/t5572-pull-submodule.sh | 56 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 90 insertions(+), 14 deletions(-)
base-commit: e4d83eee9239207622e2b1cc43967da5051c189c
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-789%2Fphil-blain%2Fpull-recurse-no-fork-point-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-789/phil-blain/pull-recurse-no-fork-point-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/789
-- 
gitgitgadget
Next: Philippe Blain via GitGitGadget
Message 1 of 5 in “Fix 'pull --rebase --recurse-submodules' when local and upstream branches have no fork-point”
  1. 0/4 Fix 'pull --rebase --recurse-submodules' when local and upstream branches have no fork-pointPhilippe Blain via GitGitGadget, Nov 14, 2020
  2. 1/4 pull --rebase: compute rebase arguments in separate functionPhilippe Blain via GitGitGadget, Nov 14, 2020
  3. 3/4 t5572: describe '--rebase' tests a little morePhilippe Blain via GitGitGadget, Nov 14, 2020
  4. 2/4 t5572: add notes on a peculiar testPhilippe Blain via GitGitGadget, Nov 14, 2020
  5. 4/4 pull: check for local submodule modifications with the right rangePhilippe Blain via GitGitGadget, Nov 14, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.