Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
feat: checkout 2u/main branch if envvar is set
Browse files Browse the repository at this point in the history
  • Loading branch information
christopappas committed Feb 2, 2024
1 parent 66d27b9 commit 90fb0a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ _checkout_and_update_branch ()
{
GIT_SYMBOLIC_REF="$(git symbolic-ref HEAD 2>/dev/null)"
BRANCH_NAME=${GIT_SYMBOLIC_REF##refs/heads/}
if [ -n "${OPENEDX_GIT_BRANCH}" ]; then

if [ -n "${TWOU_CHECKOUT_BRANCH}" ]; then
CHECKOUT_BRANCH="${TWOU_CHECKOUT_BRANCH}"
elif [ -n "${OPENEDX_GIT_BRANCH}" ]; then
CHECKOUT_BRANCH=${OPENEDX_GIT_BRANCH}
else
CHECKOUT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
Expand Down

0 comments on commit 90fb0a0

Please sign in to comment.