git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn init throws Not a git repository (or any of the parent directories): .git
@ 2013-02-13 13:01 amccloud
  2013-02-13 13:15 ` Konstantin Khomoutov
  0 siblings, 1 reply; 2+ messages in thread
From: amccloud @ 2013-02-13 13:01 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git svn init throws Not a git repository (or any of the parent directories): .git
  2013-02-13 13:01 git svn init throws Not a git repository (or any of the parent directories): .git amccloud
@ 2013-02-13 13:15 ` Konstantin Khomoutov
  0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Khomoutov @ 2013-02-13 13:15 UTC (permalink / raw)
  To: amccloud@gmail.com; +Cc: git

On Wed, 13 Feb 2013 14:01:36 +0100
"amccloud@gmail.com" <amccloud@gmail.com> wrote:

> 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

Are you doing `git init` first before running `git svn init ...`?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-13 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 13:01 git svn init throws Not a git repository (or any of the parent directories): .git amccloud
2013-02-13 13:15 ` Konstantin Khomoutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).