Skip to content

Commit 06caa92

Browse files
Ned Batcheldernedbat
authored andcommitted
Fix checkout for OPENEDX_RELEASE
Some repos are not part of the Open edX releases, and so should not be checked out. If OPENEDX_RELEASE is set, then don't try to get those repos.
1 parent 5aae186 commit 06caa92

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

repo.sh

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ else
1717
exit 1
1818
fi
1919

20-
if [ -n "${OPENEDX_RELEASE}" ]; then
21-
OPENEDX_GIT_BRANCH=open-release/${OPENEDX_RELEASE}
22-
else
23-
OPENEDX_GIT_BRANCH=master
24-
fi
25-
2620
# When you add new services should add them to both repos and ssh_repos
21+
# (or non_release_repos and non_release_ssh_repos if they are not part
22+
# of Open edX releases).
2723
repos=(
2824
"https://github.com/edx/course-discovery.git"
2925
"https://github.com/edx/credentials.git"
@@ -34,12 +30,15 @@ repos=(
3430
"https://github.com/edx/edx-platform.git"
3531
"https://github.com/edx/xqueue.git"
3632
"https://github.com/edx/edx-analytics-pipeline.git"
37-
"https://github.com/edx/registrar.git"
3833
"https://github.com/edx/frontend-app-gradebook.git"
39-
"https://github.com/edx/frontend-app-program-console.git"
4034
"https://github.com/edx/frontend-app-publisher.git"
4135
)
4236

37+
non_release_repos=(
38+
"https://github.com/edx/registrar.git"
39+
"https://github.com/edx/frontend-app-program-console.git"
40+
)
41+
4342
ssh_repos=(
4443
"git@github.com:edx/course-discovery.git"
4544
"git@github.com:edx/credentials.git"
@@ -50,17 +49,28 @@ ssh_repos=(
5049
"git@github.com:edx/edx-platform.git"
5150
"git@github.com:edx/xqueue.git"
5251
"git@github.com:edx/edx-analytics-pipeline.git"
53-
"git@github.com:edx/registrar.git"
5452
"git@github.com:edx/frontend-app-gradebook.git"
55-
"git@github.com:edx/frontend-app-program-console.git"
5653
"git@github.com:edx/frontend-app-publisher.git"
5754
)
5855

56+
non_release_ssh_repos=(
57+
"git@github.com:edx/registrar.git"
58+
"git@github.com:edx/frontend-app-program-console.git"
59+
)
60+
5961
private_repos=(
6062
# Needed to run whitelabel tests.
6163
"https://github.com/edx/edx-themes.git"
6264
)
6365

66+
if [ -n "${OPENEDX_RELEASE}" ]; then
67+
OPENEDX_GIT_BRANCH=open-release/${OPENEDX_RELEASE}
68+
else
69+
OPENEDX_GIT_BRANCH=master
70+
repos+=("${non_release_repos[@]}")
71+
ssh_repos+=("${non_release_ssh_repos[@]}")
72+
fi
73+
6474
name_pattern=".*/(.*).git"
6575

6676
_checkout ()

0 commit comments

Comments
 (0)