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

Re: git diff --submodule=diff fails with submodules in a submodule

From
Jacob Keller <jacob.keller@gmail.com>
Date
Mar 31, 2017, 17:31 UTC
Message-ID
<CA+P7+xoqWCpySc17104zggLgwx1mc0T+JXybrgd8sQxoQFP-PQ@mail.gmail.com>
In-Reply-To
<CAGZ79kapamr4=C_JQ4Ud2bF6NoXn8qeQR1fYScWB4+-EzEckmQ@mail.gmail.com>
On Fri, Mar 31, 2017 at 10:07 AM, Stefan Beller <sbeller@google.com> wrote:
Show 17 quoted lines
> +cc Jacob, who implemented --submodule=diff
>
> On Fri, Mar 31, 2017 at 8:40 AM, David Parrish <daveparrish@gmail.com> wrote:
>> When I try to run `git diff --submodule=diff` in a submodule which has
>> it's own submodules that have changes I get the error: fatal: bad
>> object
>
> Thanks for the bug report!
>
>> Let me know if you need an example reproduce the issue.
>
> I could reproduce it when playing around locally with a submodule in
> submodules. I think sub-submodule needs to have its HEAD moved from
> the recorded commit.
>
> Thanks,
> Stefan

Hmm. An example reproduction would be helpful. Ideally in the form of a test ;) But otherwise whatever helps. I will try to look at this, but I'm busy for a few days.

Thanks, Jake

Previous: Stefan BellerNext: Stefan Beller
Message 3 of 5 in “git diff --submodule=diff fails with submodules in a submodule”
  1. David ParrishMar 31, 2017
  2. Stefan BellerMar 31, 2017
  3. Jacob KellerMar 31, 2017
  4. failure with diff --submodule=diff with moved nested submodule HEADStefan Beller, Mar 31, 2017
  5. Junio C HamanoMar 31, 2017

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.