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

Re: [PATCH 1/2] git-submodule: move cloning into a separate function

From
Junio C Hamano <junkio@cox.net>
Date
Jun 6, 2007, 08:55 UTC
Message-ID
<7vira15uon.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<op.ttf34qd99pspc6@localhost>
"Lars Hjemli" <hjemli@gmail.com> writes:
Show 22 quoted lines
> This is just a simple refactoring of modules_init() with no change in
> functionality.
>
> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
> ---
>
> On Tue, 05 Jun 2007 12:40:50 +0200, Johannes Sixt <J.Sixt@eudaptics.com> wrote:
>
>> Lars Hjemli wrote:
>>> +               module_clone "$path" "$url" || exit $?
>>
>> Minor nit: The idiom that is commonly used in situations like this (see
>> other git-* shell scripts):
>>
>> 		module_clone "$path" "$url" || exit
>>
>> because exit without argument uses the code of the last command
>> executed.
>>
>
> Thanks, I'll follow up with matching changes to [patch 2/2].
>
This seems to be WS munged by your mailer.
Show 9 quoted lines
> ...
> +	die "Clone of submodule '$path' failed"
> +}
> +
>   #
>   # Run clone + checkout on missing submodules
>   #
> @@ -40,20 +67,6 @@ modules_init()
>   		# repository
Previous: Lars HjemliNext: Lars Hjemli
Message 5 of 11 in “git-submodule: make it easier to use alternate urls”
  1. 0/2 git-submodule: make it easier to use alternate urlsLars Hjemli, Jun 5, 2007
  2. 1/2 git-submodule: move cloning into a separate functionLars Hjemli, Jun 5, 2007
  3. Johannes SixtJun 5, 2007
  4. 1/2 git-submodule: move cloning into a separate functionLars Hjemli, Jun 5, 2007
  5. Junio C HamanoJun 6, 2007
  6. 1/2 git-submodule: move cloning into a separate functionLars Hjemli, Jun 6, 2007
  7. 2/2 git-submodule: clone during update, not during initLars Hjemli, Jun 6, 2007
  8. Sven VerdoolaegeJun 17, 2007
  9. Lars HjemliJun 17, 2007
  10. 2/2 git-submodule: clone during update, not during initLars Hjemli, Jun 5, 2007
  11. 2/2 git-submodule: clone during update, not during initLars Hjemli, Jun 5, 2007

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.