Skip to content

Commit ed3acbb

Browse files
committed
Fixed detection of an existing origin/gh-pages branch.
1 parent 54142c9 commit ed3acbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy-site.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TARGET_BRANCH=${1:-gh-pages}
99
CURRENT_BRANCH=`git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'`
1010
npm run generate-site
1111
git fetch origin $TARGET_BRANCH
12-
if [ `git branch --list origin/$TARGET_BRANCH `]; then \
12+
if [ `git branch --list -a origin/$TARGET_BRANCH` ]; then \
1313
git checkout -B $TARGET_BRANCH origin/$TARGET_BRANCH
1414
else \
1515
git checkout --orphan $TARGET_BRANCH && \

0 commit comments

Comments
 (0)