Skip to content

Commit a77c4d0

Browse files
committed
fallback for the old repos
1 parent 30be545 commit a77c4d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ GIT_COMMAND="git push dokku@$HOST:$PROJECT"
1414

1515
echo "Detect the project default branch: master or main"
1616
DEFAULT_BRANCH="$(git remote show origin | awk '/HEAD branch/ {print $NF}')"
17+
18+
if [ -z "$DEFAULT_BRANCH" ]
19+
then
20+
DEFAULT_BRANCH="master"
21+
fi
22+
1723
echo "Default is $DEFAULT_BRANCH"
1824

1925
if [ -n "$BRANCH" ]; then

0 commit comments

Comments
 (0)