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

Updating Submodules

From
Bbenhill <benhill@gmail.com>
Date
Oct 15, 2008, 05:51 UTC
Message-ID
<19987153.post@talk.nabble.com>
Heyah Folks.

So I have been playing with this for a few hours, and I must be missing something.

I have created a submodule in my super project with the standard commands:
git submodule add <repo> <path>

No problem. Repo Loads. I push it to origin (github) and the little arrow designating it as a sub is there.

Then one of my colleagues checks out the super and runs:

git submodule init git submodule add

...no problems thus far...the repo loads as planned.

The she makes some changes to the submodule, checks them in, pushes them to origin (also github).

Now, if she tried to check in changes to the super...it is no longer just the submodule ref that she is checking in...but the whole tree....like it adds all the files in the submodule to the super...if she were to push to github, the little arrow would be gone..and the whole tree is there.

What am I doing wrong here? How do you make updates to supers to point to the head revision of the sub?

Thanks for any help.
Ben
-- 
View this message in context: http://www.nabble.com/Updating-Submodules-tp19987153p19987153.html
Sent from the git mailing list archive at Nabble.com.
Message 1 of 1 in “Updating Submodules”
  1. benhillOct 15, 2008

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.