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

Re: [RFC 2/2] Don't push a repository with unpushed submodules

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jul 4, 2011, 20:05 UTC
Message-ID
<20110704200509.GA783@book.hvoigt.net>
In-Reply-To
<7viprpu1p5.fsf@alter.siamese.dyndns.org>
Hi,
On Tue, Jun 28, 2011 at 01:43:18PM -0700, Junio C Hamano wrote:
Show 18 quoted lines
> Heiko Voigt <hvoigt@hvoigt.net> writes:
> 
> >> What if
> >> 
> >>  (1) you are binding somebody else's project as your own submodule, you do
> >>      not make any local changes (you won't be pushing them out anyway),
> >>      and you do not have remote tracking branches in that submodule
> >>      project?
> >
> > In this scenario the superproject can not be cloned that way that it
> > would contain the submodule right? I would consider this a rather exotic
> > way to work since pushing means to share your work somehow.
> 
> Sorry, I don't follow. Isn't this the classical example of an el-cheapo
> router firmware project (i.e. superproject) binding unmodified Linux
> kernel project as one of its submodules without you having any push
> privilege to Linus's repository, which was one of the original examples
> used in the very initial submodule discussion?

But in such an example the Linux submodule (if used with git submodule) would have remote tracking branches even though they are not directly pushable.

Cheers Heiko
Previous: Jens LehmannNext: Marc Branchaud
Message 9 of 14 in “[RFC 0/2] push checks for unpushed remotes in submodules”
  1. Fredrik GustafssonJun 26, 2011
  2. 1/2 test whether push checks for unpushed remotes in submodulesFredrik Gustafsson, Jun 26, 2011
  3. 2/2 Don't push a repository with unpushed submodulesFredrik Gustafsson, Jun 26, 2011
  4. Junio C HamanoJun 28, 2011
  5. Heiko VoigtJun 28, 2011
  6. Junio C HamanoJun 28, 2011
  7. Fredrik GustafssonJun 28, 2011
  8. Jens LehmannJun 28, 2011
  9. Heiko VoigtJul 4, 2011
  10. Marc BranchaudJun 28, 2011
  11. Jens LehmannJun 28, 2011
  12. Marc BranchaudJun 29, 2011
  13. Fredrik GustafssonJun 28, 2011
  14. Marc BranchaudJun 29, 2011

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.