git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Taylor Braun-Jones <taylor@braun-jones.org>
To: Stefan Beller <sbeller@google.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: fetching from an hg remote fails with bare git repositories
Date: Tue, 4 Aug 2015 17:27:13 -0400	[thread overview]
Message-ID: <CAKfKJYshy58eQMXTusUTf0dc2B7uVU+=rzdSicSG0JAuODSBug@mail.gmail.com> (raw)
In-Reply-To: <CAGZ79kawh0himmR+DuvcQB0O1rRVBhkg9ycCLvPdbp1m0sHKtQ@mail.gmail.com>

On Tue, Aug 4, 2015 at 2:56 PM, Stefan Beller <sbeller@google.com> wrote:
> On Tue, Aug 4, 2015 at 10:45 AM, Taylor Braun-Jones
> <taylor@braun-jones.org> wrote:
>> 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
>
> Which version of git did you test this with? Does it also happen on
> the latest version?

Sorry - forgot that detail. This is using git 2.1.4 from Ubuntu 15.04
x86_64. I haven't tried the latest version of git yet.

  reply	other threads:[~2015-08-04 21:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-08-04 23:03     ` Mike Hommey
2015-08-06 18:21       ` Taylor Braun-Jones

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='CAKfKJYshy58eQMXTusUTf0dc2B7uVU+=rzdSicSG0JAuODSBug@mail.gmail.com' \
    --to=taylor@braun-jones.org \
    --cc=git@vger.kernel.org \
    --cc=sbeller@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).