1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Allow branch name in vendor-helper script

With this, you can specify a branch name in the
vendor script instead of a commit ID. This makes it easier
to quickly test changes in dep'd repos outside of the DIND
environment.

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Upstream-commit: 6bf24406505476cf1ba1c844a57cc84ef8122359
Component: engine
This commit is contained in:
Christy Perez
2015-08-19 17:56:04 -05:00
parent 453680f8ee
commit d4c05ed20e

View File

@@ -28,7 +28,7 @@ clone() {
case "$vcs" in
git)
git clone --quiet --no-checkout "$url" "$target"
( cd "$target" && git reset --quiet --hard "$rev" )
( cd "$target" && git checkout --quiet "$rev" && git reset --quiet --hard "$rev" )
;;
hg)
hg clone --quiet --updaterev "$rev" "$url" "$target"