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

Re: Remote hung up during `git fetch`

From
Yichao Yu <yyc1992@gmail.com>
Date
Nov 22, 2012, 20:09 UTC
Message-ID
<CAMvDr+RBL2RDeSUjQ=GeRfX-g4WqmdrOWDCYSem=ELMXXuf3mA@mail.gmail.com>
In-Reply-To
<CAJo=hJs5PwLxwtBoYb+ZLmY=ts9U=UhDPmKXW7KY2BFNpBJfDQ@mail.gmail.com>
On Thu, Nov 22, 2012 at 2:52 PM, Shawn Pearce <spearce@spearce.org> wrote:
Show 8 quoted lines
> On Thu, Nov 22, 2012 at 11:44 AM, Yichao Yu <yyc1992@gmail.com> wrote:
>>> US holiday today? The list traffic tends to be down during holidays.
>> This silent?.... 0 email from the kernel mailing list for 10+ hours?..
>> anyway.... nvm...
>
> Check your spam filters? I am having no trouble getting email for the
> Git list. Traffic is down, but there have been several messages within
> the past 4 hours. E.g. this thread among them.

My spam filter is fine (they are not in spam...)... probably gmail just failed to send to / receive from vger.kernel.org for the last several hours (or sth similar...)....

Show 12 quoted lines
>
>> packet:        fetch> want 2d242fb3fc19fc9ba046accdd9210be8b9913f64
>> multi_ack_detailed side-band-64k thin-pack ofs-delta
>> packet:        fetch> shallow 65546ab097b023886a60df4cbc931d4cc362b98e
>> packet:        fetch> shallow b80d60e1c3854460a1f01d4110da5ae98f30f9b2
>> packet:        fetch> 0000
>
> I think this is the problem. Your client told the sever it has the
> Linux kernel shallow cloned, but its talking to a repository that
> hosts git.git. The remote server doesn't know these two SHA-1s
> mentioned on the shallow line, as they are from the Linux kernel
> repository, so the server just hung up on you.

I C. So in my real case it is probably because the different server I am pulling from are on different branches.... (for a shallow clone, it may look the same with commits from different projects?...)

Show 7 quoted lines
>
> Basically this is an unsupported use case. A shallow repository can
> only fetch from the place it cloned from. Anything else working is
> pure luck. It _may_ be able to fetch from a clone of that same
> repository at another server, if the clone has at least all of the
> commits the client already has. If the remote clone is missing commits
> (as in this case where it has none!) then it doesn't work.

So is there a way to ask for a certain commit from a certain server and update local files that has changed accordingly? For the server, it shouldn't be much different from another shallow clone (although it would be better if locally existing objects are not transferred.). But I am wondering what client side command/script do I need to use.

THX.
Previous: Shawn PearceNext: Andrew Ardill
Message 6 of 7 in “Remote hung up during `git fetch`”
  1. Yichao YuNov 22, 2012
  2. Fwd: Remote hung up during `git fetch`Yichao Yu, Nov 22, 2012
  3. Shawn PearceNov 22, 2012
  4. Yichao YuNov 22, 2012
  5. Shawn PearceNov 22, 2012
  6. Yichao YuNov 22, 2012
  7. Andrew ArdillNov 22, 2012

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.