git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to clone empty repositories remotely
@ 2008-11-25 21:05 Hannu Koivisto
  2008-11-25 21:33 ` Christian MICHON
  0 siblings, 1 reply; 3+ messages in thread
From: Hannu Koivisto @ 2008-11-25 21:05 UTC (permalink / raw)
  To: git

Greetings,

mkdir test
cd test
git init --bare --shared=group
cd ..
git clone test test2

works, though clone says it cannot checkout, which is expected.
This is nevertheless very useful when you create a shared
repository for a new project; you can then create a personal clone
and start adding stuff to it.  If, however, you normally work on
another machine and want to have your personal clone there
(i.e. git clone ssh://therepomachine/somewhere/test), cloning
doesn't work at all (tested with git 1.6.0.3.525.ge32c2 in Cygwin):

Initialized empty Git repository in /cygdrive/c/temp/test/.git/
fatal: no matching remote head

This behaviour isn't documented by either git-init(1) or
git-clone(1).  I think it would be very convenient if this worked
for the reasons mentioned above.  I'm sure you could create your
personal repository with git init and then git remote add the
shared repository to it but that's much more difficult.

-- 
Hannu

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

end of thread, other threads:[~2008-11-26 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 21:05 Unable to clone empty repositories remotely Hannu Koivisto
2008-11-25 21:33 ` Christian MICHON
2008-11-26 13:13   ` Hannu Koivisto

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).