Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,9 @@ push_to_branch() {
git checkout "${CHECKOUT}"
fi

if [ -n "$(git show-ref refs/heads/${BRANCH})" ]; then
git checkout "${BRANCH}"
else
git checkout -b "${BRANCH}"
fi
# Checkout localization branch, using remote state if available
git fetch origin "${BRANCH}" 2>/dev/null || true
git checkout -B "${BRANCH}" "origin/${BRANCH}" 2>/dev/null || git checkout -B "${BRANCH}"

git add .

Expand Down