From d41c4742754706fcde72feff096b89088b9553ae Mon Sep 17 00:00:00 2001 From: southerntofu Date: Wed, 16 Sep 2020 13:22:54 +0200 Subject: [PATCH] Rename task.branch to task.checkout --- forgebuild.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/forgebuild.sh b/forgebuild.sh index b9c6b73..b8f2444 100755 --- a/forgebuild.sh +++ b/forgebuild.sh @@ -190,12 +190,13 @@ for p_name in ${PROJECTS[*]}; do continue fi info process - # TODO: Should be able to switch branch after a repo was cloned - if [ -f $BASEDIR/$p_name.branch ]; then - p_branch="$(cat $BASEDIR/$p_name.branch)" + # checkout a specific branch/commit + if [ -f $BASEDIR/$p_name.checkout ]; then + p_branch="$(cat $BASEDIR/$p_name.checkout)" export i18n_branch="$p_branch" info to_branch else + # TODO: support non-master primary branch p_branch="master" export i18n_branch="$p_branch" debug default_branch