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

git svn init throws Not a git repository (or any of the parent directories): .git

From
Aamccloud@gmail.com <amccloud@gmail.com>
Date
Feb 13, 2013, 13:01 UTC
Message-ID
<CALiJYpDPf8R2mOZn5Ey_yArSAg73WRASKS1cqLsAu1tGJcO_SA@mail.gmail.com>
Hi all,
I have problem with git svn init:
When I execute
git svn init svn+ssh://username@example.com/path/repo
I see:
fatal: Not a git repository (or any of the parent directories): .git
Already at toplevel, but .git not found
 at /usr/lib/git-core/git-svn line 342

But when I execute: git svn clone svn+ssh://username@example.com/path/repo Everythins is ok and I see: Initialized empty Git repository in /tmp/svn_migration/repo/.git/

Any hints why it's no working? I prefer to do first init and then fetch, because I can fetch selected revisions (git svn fetch --revision 1:1000) - so it's easier for me to split migration into groups lets say 1000 revision at once.

My software versions: git version 1.8.1.1

svn, version 1.6.12 (r955767)
   compiled Feb 17 2012, 10:36:45
Best regards.
Next: Konstantin Khomoutov
Message 1 of 2 in “git svn init throws Not a git repository (or any of the parent directories): .git”
  1. amccloud@gmail.comFeb 13, 2013
  2. Konstantin KhomoutovFeb 13, 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.