threads / discuss / 34918

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

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

## tl;dr

One message between Sep 12, 2013 and Sep 12, 2013.

replies: 0people: 1as markdown or json

Marc-Antoine Ruel· Sep 12, 2013, 18:45 UTC · lore
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

← back to recent threads