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

Delete gitlink entry but keep .gitmodules file unmodified

From
SVSemen Vadishev <semen.vadishev@tmatesoft.com>
Date
Apr 18, 2012, 13:19 UTC
Message-ID
<4F8EBF5D.5070301@tmatesoft.com>
Suppose one has a properly initialized submodule in a tree like this:

$ git ls-tree HEAD 100644 blob d208248ba4ab1d1791dc27f451dcaedb87dc19e1 .gitmodules 160000 commit ec633ea81e3cf64c3735ef4acd5ff9a490ed54eb ext 100644 blob 597d6924118c00054efd526d9e48f68198f7da12 file.txt

$ git show HEAD:.gitmodules
[submodule "ext"]
         path = ext
         url = $URL

Then one pulls a modification that replaces 'ext' gitlink by some blob or tree entry, but keeps '.gitmodules' the same:

$ git ls-tree HEAD 100644 blob d208248ba4ab1d1791dc27f451dcaedb87dc19e1 .gitmodules 040000 tree 82e3a754b6a0fcb238b03c0e47d05219fbf9cf89 ext 100644 blob 597d6924118c00054efd526d9e48f68198f7da12 file.txt

Are there any possible downsides of such modification we should be aware of?
Thanks,
-- 
Semen Vadishev,
TMate Software,
http://subgit.com/ - git+svn on the server side!
Next: Jens Lehmann
Message 1 of 4 in “Delete gitlink entry but keep .gitmodules file unmodified”
  1. Semen VadishevApr 18, 2012
  2. Jens LehmannApr 18, 2012
  3. Semen VadishevApr 18, 2012
  4. Jens LehmannApr 19, 2012

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.