[FFmpeg-devel] snapshots differ from git clone
timothygu99 at gmail.com
Wed Aug 3 01:41:09 EEST 2016
On Tue, Aug 2, 2016 at 3:10 PM Nicolas George <george at nsup.org> wrote:
> Le sextidi 16 thermidor, an CCXXIV, Jan Ehrhardt a écrit :
> > Because it is faster to download a snapshot and extract it than
> > doing a git clone
> I suggest you consider doing a shallow clone (--depth 1). It should take
> roughly the same time as getting and unpacking a snapshot. IIRC, one of the
> minor perks of doing that is that the version script will give a more
> version tag.
At least here, Git is still slower. In addition, https://git.ffmpeg.org
doesn't seem to support --depth.
$ time curl https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | tar
$ git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git ffmpeg2
Cloning into 'ffmpeg2'...
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
$ time git clone --depth=1 https://github.com/FFmpeg/FFmpeg.git ffmpeg2
More information about the ffmpeg-devel