Failure cloning from a separate-git-dir repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]