CI: use PR repo instead of main repo when checking out branches. (https://github.com/woocommerce/woocommerce-admin/pull/3512)

This commit is contained in:
Jeff Stieler 2020-01-03 12:00:40 -05:00 committed by GitHub
parent af5022c3d1
commit a44efefbd6
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ install_deps() {
BRANCH="$(sed 's/#/%23/' <<<$BRANCH)"
# Checkout plugin via Git so all files are gathered.
cd "$WP_CORE_DIR/wp-content/plugins"
git clone https://github.com/woocommerce/woocommerce-admin.git
git clone https://github.com/$REPO.git
cd woocommerce-admin
git fetch origin $BRANCH
git checkout -B $BRANCH origin/$BRANCH