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

Re: [PATCH] submodule: add --no-fetch parameter to update command

From
LHLars Hjemli <hjemli@gmail.com>
Date
Feb 6, 2009, 18:01 UTC
Message-ID
<8c5c35580902061001m6259d4ebt1c0dea7691b0a5dc@mail.gmail.com>
In-Reply-To
<1233872312-17781-1-git-send-email-git@fabian-franz.de>
On Thu, Feb 5, 2009 at 23:18, Fabian Franz <git@fabian-franz.de> wrote:
> git submodule update --no-fetch makes it possible to use git submodule
> update in complete offline mode by not fetching new revisions.

This is nice, but it would be even nicer IMHO if "submodule update" first tried to checkout the submodule commit and only if that failed would it try to fetch objects (before re-trying the checkout).

>  Documentation/git-submodule.txt |    7 ++++++-
>  git-submodule.sh                |   19 ++++++++++++++++---
>  2 files changed, 22 insertions(+), 4 deletions(-)

Extending t/t7400-submodule-basic.sh would also be nice (either for --no-fetch or for a less fetchy "submodule update").

-- larsh

Previous: Fabian FranzNext: Fabian Franz
Message 2 of 4 in “submodule: add --no-fetch parameter to update command”
  1. submodule: add --no-fetch parameter to update commandFabian Franz, Feb 5, 2009
  2. Lars HjemliFeb 6, 2009
  3. Fabian FranzFeb 7, 2009
  4. Junio C HamanoFeb 7, 2009

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.