git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Submodules and branches
@ 2008-04-04 19:40 Pat Maddox
  2008-04-04 20:02 ` Avery Pennarun
  0 siblings, 1 reply; 4+ messages in thread
From: Pat Maddox @ 2008-04-04 19:40 UTC (permalink / raw)
  To: git

I've got a repository that uses submodules.  If I cd to the repo root
and create a branch, all the submodules are switched to that branch as
well.  All good so far.  I go into the submodules and do my work,
committing as I go along.  Then when I'm all done and want to merge
the changes into my master branch, I cd back to the repo root and do
"git merge new_topic"

That's where it breaks down.  The commits that I made go into the
master repo itself, and the submodules don't have them.  So when I
push from the submodule to its origin, nothing goes through.  The code
is now a part of the master repo.

Is it possible for me to use branches like usual, but with submodules?

Pat

^ permalink raw reply	[flat|nested] 4+ messages in thread
* submodules and branches
@ 2008-04-25  0:41 Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2008-04-25  0:41 UTC (permalink / raw)
  To: git

Our CM team likes to use both submodules and branches and it doesn't
always work cleanly.  Some examples:

1. The new release on branch "next_release" adds a submodule, but then the
submodule shows up on all branches including the production branch.

2. For next release on branch "next_release" a submodule was renamed by
moving the target directory, but now git submodule update makes two copies.

Git generally does a good job of tracking renames and deletions, so the fact
that submodules leave stuff behind is surprising.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-25  0:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 19:40 Submodules and branches Pat Maddox
2008-04-04 20:02 ` Avery Pennarun
2008-04-04 20:07   ` Pat Maddox
  -- strict thread matches above, loose matches on Subject: below --
2008-04-25  0:41 submodules " Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).