git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: fetching from an hg remote fails with bare git repositories

From
Stefan Beller <sbeller@google.com>
Date
Aug 4, 2015, 18:56 UTC
Message-ID
<CAGZ79kawh0himmR+DuvcQB0O1rRVBhkg9ycCLvPdbp1m0sHKtQ@mail.gmail.com>
In-Reply-To
<CAKfKJYuuO+eak-L2SUVUEmoOj16bgV6LL0S=g-LzFjTxZUcRzQ@mail.gmail.com>

On Tue, Aug 4, 2015 at 10:45 AM, Taylor Braun-Jones <taylor@braun-jones.org> wrote:

Show 24 quoted lines
> 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?

> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Taylor Braun-JonesNext: Taylor Braun-Jones
Message 2 of 5 in “fetching from an hg remote fails with bare git repositories”
  1. Taylor Braun-JonesAug 4, 2015
  2. Stefan BellerAug 4, 2015
  3. Taylor Braun-JonesAug 4, 2015
  4. Mike HommeyAug 4, 2015
  5. Taylor Braun-JonesAug 6, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.