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

Re: [RFC/PATCH] Re: git submodule -b ... of current HEAD fails

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 3, 2010, 07:10 UTC
Message-ID
<20101203071037.GA18202@burratino>
In-Reply-To
<4CF80B71.3010309@web.de>
Jens Lehmann wrote:
> Am 01.12.2010 19:50, schrieb Jonathan Nieder:
Show 7 quoted lines
>>                                  Jens, any idea why git submodule
>> is not using "clone --branch" directly?
>
> Nope, these lines date back to the time before I got involved in the
> submodule business ... Seems like this "git checkout" was added in
> March 2008 by Mark Levedahl (CCed), maybe he can shed some light on
> that.

Ah, so the problem is that "clone --branch" did not exist. Sorry for the noise.

Another question can be also be easily answered by history examination: the series of checks in module_clone are because 70c7ac22d:git-clone.sh did not have checks of its own for the target directory.

So there is some simplification within grasp.

'night, Jonathan

Previous: Ben JacksonNext: Jens Lehmann
Message 5 of 16 in “Re: git submodule -b ... of current HEAD fails”
  1. Re: git submodule -b ... of current HEAD failsJonathan Nieder, Dec 1, 2010
  2. Jens LehmannDec 2, 2010
  3. Mark LevedahlDec 3, 2010
  4. Ben JacksonDec 3, 2010
  5. Jonathan NiederDec 3, 2010
  6. git submodule: Remove now obsolete tests before cloning a repoJens Lehmann, Dec 4, 2010
  7. Junio C HamanoDec 7, 2010
  8. Jens LehmannDec 8, 2010
  9. git submodule -b ... of current HEAD failsJens Lehmann, Dec 8, 2010
  10. Jonathan NiederDec 8, 2010
  11. Junio C HamanoDec 28, 2010
  12. Jens LehmannDec 29, 2010
  13. Junio C HamanoDec 29, 2010
  14. Jens LehmannDec 29, 2010
  15. Re* [RFC/PATCH] Re: git submodule -b ... of current HEAD failsJunio C Hamano, Dec 29, 2010
  16. Jens LehmannDec 29, 2010

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.