gitutils: add validation for ref
authorTonis Tiigi <tonistiigi@gmail.com>
Wed, 6 Feb 2019 19:58:40 +0000 (11:58 -0800)
committerFelix Geyer <fgeyer@debian.org>
Tue, 3 Sep 2019 17:59:35 +0000 (18:59 +0100)
commit00f5625ce431e10a22f1b6879aff08d14504827f
tree66e2d33913bce551fdfe486d2a147839123654e8
parenta7364b3326b2aab2de91ddfd09503e7f1372b535
gitutils: add validation for ref

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 723b107ca4fba14580a6cd971e63d8af2e7d2bbe)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Origin: upstream, https://github.com/moby/moby/pull/38944

Gbp-Pq: Name cve-2019-13139-01-gitutils-add-validation-for-ref.patch
engine/builder/remotecontext/git/gitutils.go
engine/builder/remotecontext/git/gitutils_test.go