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

Re: Fetching commit instead of ref

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 22, 2017, 18:47 UTC
Message-ID
<xmqqlghusiq7.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1513756114533.56362@arris.com>
"Carlsson, Magnus" <Magnus.Carlsson@arris.com> writes:
Show 6 quoted lines
> $ git fetch subrepo 50f730db793e0733b159326c5a3e78fd48cedfec:refs/remote/subrepo/foo-commit
> remote: Counting objects: 2311, done.
> remote: Total 2311 (delta 0), reused 0 (delta 0), pack-reused 2311
> -- >>> Receiving objects: 100% (2311/2311), 703.64 KiB | 0 bytes/s, done.
> Resolving deltas: 100% (1174/1174), done.
> error: Server does not allow request for unadvertised object 50f730db793e0733b159326c5a3e78fd48cedfec

Unless that "fetch" is doing a recursive fetch from another repository (which causes the counting to be shown) or something silly, the above makes it look like that the server is broken.

A quick test locally does not seem to show such a behaviour, but I do not enable pack bitmaps and I know github does at least for some repositories, so it is possible there is a problem somewhere in that codepath.

Previous: Carlsson, Magnus
Message 8 of 8 in “Fetching commit instead of ref”
  1. Carlsson, MagnusDec 18, 2017
  2. Jonathan TanDec 18, 2017
  3. Stefan BellerDec 18, 2017
  4. Junio C HamanoDec 18, 2017
  5. Carlsson, MagnusDec 19, 2017
  6. Junio C HamanoDec 19, 2017
  7. Carlsson, MagnusDec 20, 2017
  8. Junio C HamanoDec 22, 2017

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.