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

git init --separate-git-dir does not update symbolic .git links for submodules

From
SSSven Strickroth <sven@cs-ware.de>
Date
Mar 4, 2017, 12:15 UTC
Message-ID
<ede7618e-fdf9-7bb6-850b-2b03b4092306@cs-ware.de>
Hi,
clone or have a repository with submodules.

Now issue "git init --separate-git-dir ../test" which moves the content of the .git direcotry to the ../test directory and replaces the .git directory with a .git file "link".

However, for all submodules the .git-file is not updated and still points to the .git directory of the parent repository which now is a file.

This issue is present for me in Git 2.12.0.
-- 
Best regards,
 Sven Strickroth
 PGP key id F5A9D4C4 @ any key-server
Message 1 of 1 in “git init --separate-git-dir does not update symbolic .git links for submodules”
  1. Sven StrickrothMar 4, 2017

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.