mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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>
This commit is contained in:
parent
41ca7c0f13
commit
6bf2440650
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue