{"thread":{"id":"15906","subject":"Updating Submodules","startedAt":"2008-10-15T05:51:02Z","lastAt":"2008-10-15T05:51:02Z","messageCount":1,"participants":["benhill"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"93052","messageId":"19987153.post@talk.nabble.com","threadId":"15906","inReplyTo":null,"subject":"Updating Submodules","fromName":"benhill","fromEmail":"benhill@gmail.com","sentAt":"2008-10-15T05:51:02Z","receivedAt":"2008-10-15T05:51:02Z","isPatch":false,"sender":{"key":"benhill@gmail.com","avatar":null},"body":"\nHeyah Folks.\n\nSo I have been playing with this for a few hours, and I must be missing\nsomething.\n\nI have created a submodule in my super project with the standard commands:\n\ngit submodule add <repo> <path>\n\nNo problem.  Repo Loads.  I push it to origin (github) and the little arrow\ndesignating it as a sub is there.\n\nThen one of my colleagues checks out the super and runs:\n\ngit submodule init\ngit submodule add\n\n...no problems thus far...the repo loads as planned.\n\nThe she makes some changes to the submodule, checks them in, pushes them to\norigin (also github).\n\nNow, if she tried to check in changes to the super...it is no longer just\nthe submodule ref that she is checking in...but the whole tree....like it\nadds all the files in the submodule to the super...if she were to push to\ngithub, the little arrow would be gone..and the whole tree is there.  \n\nWhat am I doing wrong here?  How do you make updates to supers to point to\nthe head revision of the sub?\n\nThanks for any help.\n\nBen\n-- \nView this message in context: http://www.nabble.com/Updating-Submodules-tp19987153p19987153.html\nSent from the git mailing list archive at Nabble.com.\n"}]}