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

Converting a directory to submodule

From
PSPaul Sadauskas <psadauskas@gmail.com>
Date
Nov 30, 2007, 17:53 UTC
Message-ID
<ef2da8950711300953y374c38c4y42de42d9298391a7@mail.gmail.com>
Dear list,

I'm having some trouble when I change an existing directory in a project into a submodule. After pushing this change to the origin, I can no longer pull into any other projects. I can, however, clone the origin without problems.

These are the steps I take to change the dir into a submod:

rm -rf /submod git commit -a git submodule add git://abc/submod submod git commit git push

But then attempting to pull this anywhere else results in a half-completed pull, and dies with the error:

fatal: cannot read object bb138891993fdeb3dbfcb41fe8c2a4693676f8fe 'submod~564e58282ce575db34b6f249a42b1ea59f56efd3' Merge with strategy recursive failed.

Like I said, though, a fresh clone works fine. Am I doing something wrong in my push, or is this a bug?

Thanks, Paul Sadauskas

Message 1 of 1 in “Converting a directory to submodule”
  1. Paul SadauskasNov 30, 2007

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.