Git development
 help / color / mirror / Atom feed
From: "Richard Tibbitt" <gitlist@lazyprune.com>
To: git@vger.kernel.org
Subject: Failure cloning from a separate-git-dir repository
Date: Sat, 20 Aug 2011 18:47:57 +0100	[thread overview]
Message-ID: <6csv47te4qv41ni53q0kf1fne0a4e1grnm@4ax.com> (raw)

Hi

I've been struggling to find an answer to this for days.

Can anyone confirm whether I've got the syntax right for 'Git clone'
when attempting to clone FROM a repository that was initialized using
--separate-git-dir ?

If so, does this work on Linux systems ?

With Git on windows (git version 1.7.6.msysgit.0 installed from
GitExtensions224SetupComplete.msi) I get an error as below, that looks
as though 'Git clone' is expecting the repo to have a 'normal'
integral .git dir 


  F:\>mkdir repo2
  F:\>mkdir repo2git
  F:\>cd repo2
  F:\repo2>call git init --separate-git-dir="..\repo2git\.git"
  Initialized empty Git repository in F:/repo2git/.git/
  F:\repo2>echo abc >file1.txt
  F:\repo2>call git add . -A
  F:\repo2>call git commit -m "first"
  [master (root-commit) c7e4766] first
   1 files changed, 1 insertions(+), 0 deletions(-)
   create mode 100644 file1.txt
  F:\repo2>cd ..
  F:\>call git clone repo2 clone2
  Cloning into clone2...
  fatal: failed to open 'F:/repo2/objects': No such file or directory


Many thanks in advance for any insight into this.

Richard

             reply	other threads:[~2011-08-20 18:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 17:47 Richard Tibbitt [this message]
2011-08-20 18:25 ` Failure cloning from a separate-git-dir repository Nguyen Thai Ngoc Duy
2011-08-20 18:56   ` Richard Tibbitt
2011-08-21  3:27     ` Nguyen Thai Ngoc Duy
2011-08-21 11:13       ` Richard Tibbitt
2011-08-21 18:51       ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6csv47te4qv41ni53q0kf1fne0a4e1grnm@4ax.com \
    --to=gitlist@lazyprune.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox