git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fetching from an hg remote fails with bare git repositories
@ 2015-08-04 17:45 Taylor Braun-Jones
  2015-08-04 18:56 ` Stefan Beller
  0 siblings, 1 reply; 5+ messages in thread
From: Taylor Braun-Jones @ 2015-08-04 17:45 UTC (permalink / raw)
  To: git

Fetching from an hg remote fails with bare git repositories. Non-bare
repositories work fine.

Steps to reproduce:

mkdir /tmp/hgrepo
cd /tmp/hgrepo
hg init
echo foo > foo.txt
hg add foo.txt
hg commit -m "add foo.txt" foo.txt
git clone hg::/tmp/hgrepo/ /tmp/gitrepo
cd /tmp/gitrepo/
git fetch # WORKS
git clone --bare hg::/tmp/hgrepo/ /tmp/gitrepo.git
cd /tmp/gitrepo.git/
git fetch # FAILS

The error message from the last line is:

fatal: bad object 0000000000000000000000000000000000000000
error: hg::/tmp/hgrepo/ did not send all necessary objects

Taylor

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

end of thread, other threads:[~2015-08-06 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-04 17:45 fetching from an hg remote fails with bare git repositories Taylor Braun-Jones
2015-08-04 18:56 ` Stefan Beller
2015-08-04 21:27   ` Taylor Braun-Jones
2015-08-04 23:03     ` Mike Hommey
2015-08-06 18:21       ` Taylor Braun-Jones

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