Files
docker-cli/cli/command
Kir Kolyshkin 0c20554f69 image build: fix archive detection
As pointed out in #1459, docker cli fails to detect that the input is a tarball,
in case it is generated by `git archive --format=tgz`.

This happens because `git archive` adds some metadata to the initial tar header,
and so it is more than 1 block (of 512 bytes) long, while we only provide 1 block
to archive/tar.Next() and it fails.

To fix, give it 2 blocks :)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2019-03-21 15:38:07 -07:00
..
2018-06-08 18:24:26 +02:00
2019-01-08 00:35:24 +01:00
2019-01-10 22:25:43 +01:00
2018-06-08 18:24:26 +02:00
2019-03-21 15:38:07 -07:00
2018-06-08 18:24:26 +02:00
2018-11-08 11:37:49 +01:00
2019-03-19 13:33:32 +01:00
2018-10-23 17:05:44 +02:00
2018-11-08 11:37:49 +01:00
2019-03-13 14:18:41 +01:00
2019-01-10 22:25:43 +01:00
2017-09-01 19:41:06 -04:00
2019-01-10 22:25:43 +01:00