Revert fetchdep script diff
This commit is contained in:
parent
789d078814
commit
a6120ef3b7
1 changed files with 6 additions and 1 deletions
|
@ -46,7 +46,12 @@ BRANCH_ARRAY=(${head//:/ })
|
||||||
if [[ "${#BRANCH_ARRAY[@]}" == "1" ]]; then
|
if [[ "${#BRANCH_ARRAY[@]}" == "1" ]]; then
|
||||||
|
|
||||||
if [ -n "$GITHUB_HEAD_REF" ]; then
|
if [ -n "$GITHUB_HEAD_REF" ]; then
|
||||||
|
if [[ "$GITHUB_REPOSITORY" == "$deforg"* ]]; then
|
||||||
clone $deforg $defrepo $GITHUB_HEAD_REF
|
clone $deforg $defrepo $GITHUB_HEAD_REF
|
||||||
|
else
|
||||||
|
REPO_ARRAY=(${GITHUB_REPOSITORY//\// })
|
||||||
|
clone $REPO_ARRAY[0] $defrepo $GITHUB_HEAD_REF
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
clone $deforg $defrepo $BUILDKITE_BRANCH
|
clone $deforg $defrepo $BUILDKITE_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue