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

dependable submodules

From
Daniel <daniel@netwalk.org>
Date
Mar 20, 2011, 00:53 UTC
Message-ID
<AANLkTi=JVO+KhnLKR-PvNQQFaZLhUmiVbKFxuytYEpmc@mail.gmail.com>

I have a submodule from, example, github. I do not however want to be reliant years from now, that this remote repository on github is in existant. Yet, I want to be able to easily do a git pull in the submodule as long as it's around.

Is there a way to achieve this?
IOW, I may have
    myrepo/somefile.txt
    myrepo/another_project/.git/...
    myrepo/another_project/another_project_file.txt

and I'd like to, when I clone repo, to be able to get all files from repo independently of the remote repo's existence.

Currently, if I do `git clone --recursive myrepo new_repo` I can get almost the behavior I want with the exception of the other project being pulled remotely, which means I would *have* to have a network connection to do so, but as mentioned, I don't want that dependency.

-d
Next: Junio C Hamano
Message 1 of 11 in “dependable submodules”
  1. DanielMar 20, 2011
  2. Junio C HamanoMar 20, 2011
  3. DanielMar 20, 2011
  4. Jens LehmannMar 20, 2011
  5. DanielMar 20, 2011
  6. Robert PollakMar 21, 2011
  7. DanielMar 22, 2011
  8. Avery PennarunMar 22, 2011
  9. in-gitvger@baka.orgMar 22, 2011
  10. DanielMar 22, 2011
  11. Jens LehmannMar 22, 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.