travis-apidoc.sh: revert -B with git-checkout (#1431)
Reverts part of 6b8c3642b
to fix:
> Cloning into 'build/apidoc'...
> fatal: Cannot update paths and switch to branch 'pr-1429' at the same
> time.
> Did you intend to checkout 'origin/pr-1429' which can not be resolved
> as commit?
This commit is contained in:
parent
9553f616c0
commit
bb98a4e62b
|
@ -50,7 +50,7 @@ else
|
||||||
BRANCH="gh-pages"
|
BRANCH="gh-pages"
|
||||||
fi
|
fi
|
||||||
if [ "$BRANCH" != "gh-pages" ]; then
|
if [ "$BRANCH" != "gh-pages" ]; then
|
||||||
git checkout -B "$BRANCH" "origin/${BRANCH}"
|
git checkout -b "$BRANCH" "origin/${BRANCH}" || git checkout -b "$BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use a temporary branch for the two commits, which allows for a better UI.
|
# Use a temporary branch for the two commits, which allows for a better UI.
|
||||||
|
|
Loading…
Reference in New Issue