Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647994 - git-r3.eclass - EGIT protocol error with "shallow"/`--depth=1`
Summary: git-r3.eclass - EGIT protocol error with "shallow"/`--depth=1`
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 648690
  Show dependency tree
 
Reported: 2018-02-18 09:31 UTC by Cedric Sodhi
Modified: 2018-02-24 12:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Sodhi 2018-02-18 09:31:39 UTC
With EGIT_CLONE_TYPE="shallow" the following happens when trying to emerge ffmpeg-9999 (clone or fetch)

> git clone https://git.ffmpeg.org/ffmpeg.git +HEAD:refs/git-r3/HEAD --depth=1
> Cloning into '+HEAD:refs/git-r3/HEAD'...
> fatal: The remote end hung up unexpectedly
> fatal: protocol error: bad pack header

I suppose the problem is the `--depth=1` being appended at the end rather than specified directly after `clone`.
Comment 1 Cedric Sodhi 2018-02-18 09:32:41 UTC
(`fetch`, that is. In the above example I just reproduced the error manually.)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-18 11:30:21 UTC
That's a problem with the server. You can workaround it by setting EGIT_MIN_CLONE_TYPE.