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

Re: using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config)

From
MKmartin f krafft <madduck@madduck.net>
Date
Aug 16, 2007, 14:21 UTC
Message-ID
<20070816142133.GA26013@piper.oerlikon.madduck.net>
In-Reply-To
<200708161553.10991.Josef.Weidendorfer@gmx.de>
also sprach Josef Weidendorfer <Josef.Weidendorfer@gmx.de> [2007.08.16.1553 +0200]:
> The information in .gitmodules is only a default value for the
> URL, and not to be actually used. The URL in the config has to
> exist and will be used for updating. So the config value is not
> about overriding anything, but is required information.
It's not required for git-submodule status.
Show 7 quoted lines
> The URL should not depend on the current revision you have checked
> out at the moment; otherwise, if the default URL in .gitmodules
> changed at some point in the history, and you check out some
> earlier commit in the superproject, the update of the submodule
> would not work: the submodule project still resides on the new
> URL, regardless of the old information in .gitmodules at the time
> of the old commit.
Fair point. Thanks,
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
"heuristic is computer science jargon for 'doesn't actually work.'"
                                                     -- charlie reiman
 
spamtraps: madduck.bogus@madduck.net
Previous: Josef WeidendorferNext: Josef Weidendorfer
Message 5 of 7 in “git submodule init and redundant data in .gitmodules/.git/config”
  1. martin f krafftAug 15, 2007
  2. Sven VerdoolaegeAug 15, 2007
  3. using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config)martin f krafft, Aug 15, 2007
  4. Josef WeidendorferAug 16, 2007
  5. martin f krafftAug 16, 2007
  6. Josef WeidendorferAug 16, 2007
  7. Lars HjemliAug 17, 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.