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

Rebasing with submodule change causes red herring with --continue

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Apr 10, 2015, 16:30 UTC
Message-ID
<CAHd499AqCJ5N1GP6mBJZB7-9vWPNjtia1G7PHoSY3d=Zovv7UA@mail.gmail.com>

I have a branch that contains a commit with a single change: A submodule pointing to a new SHA1.

When I rebase this branch onto the tip of its parent branch AND that parent branch had modified that same submodule, the rebase stops at the commit on my branch that modified the submodule and asks me if I want to keep REMOTE or LOCAL. I say LOCAL and notice immediately that the submodule is not staged (normally it would be).

I do:
$ git add my-submodule
Then I do:
$ git rebase --continue

At this point, it fails asking me if I forgot to stage changes and recommends doing --skip. This is normally what you would see if the staging area was completely empty, however it isn't, since I see the submodule is in there.

Is this a bug or am I missing a fundamental here? I'm using Git 2.1.0 on Windows through MSYS. I'll provide more concrete examples if my summary of the issue doesn't "ring any bells".

Next: John Keeping
Message 1 of 8 in “Rebasing with submodule change causes red herring with --continue”
  1. Robert DaileyApr 10, 2015
  2. John KeepingApr 10, 2015
  3. Robert DaileyApr 23, 2015
  4. Robert DaileyApr 23, 2015
  5. Jens LehmannApr 23, 2015
  6. John KeepingApr 23, 2015
  7. John KeepingApr 23, 2015
  8. Robert DaileyApr 27, 2015

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.