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

git-svn fails to initialize with submodule setup, when '.git' is a file and not a directory

From
MRMarc-Antoine Ruel <maruel@google.com>
Date
Sep 12, 2013, 18:45 UTC
Message-ID
<CANAQWOXT2pwF2tds3FK1bE6_cPYw_niB8O_nmxCs8_9GXuiF9g@mail.gmail.com>
Repro:
1. git clone --recursive a repository with submodules.
2. cd checkout/submoduleA
3. git svn init svn://host/repo

Expected: Works as usual

Actual: /path/to/checkout/submoduleA/.git/refs: Not a directory init: command returned error: 1

Why: submoduleA/.git is a file, not a directory. $ cat /path/to/checkout/submoduleA/.git gitdir: ../.git/modules/submoduleA

$ git --version git version 1.8.4

Thanks,
M-A
Message 1 of 1 in “git-svn fails to initialize with submodule setup, when '.git' is a file and not a directory”
  1. Marc-Antoine RuelSep 12, 2013

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.