Skip to content

Commit

Permalink
Fix auto updation travis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmakkar08 committed Nov 4, 2016
1 parent 8c9df70 commit 7581c4d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion update_documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ URL=$(git remote -v | head -n1 | cut -f2 | cut -d" " -f1)
echo "Repo url is $URL"
PUSH_URL="https://$GIT_USER:$GIT_PASS@${URL:6}"

echo "Checking out $FROM_BRANCH..." && \
git fetch origin ${FROM_BRANCH}:${FROM_BRANCH} && \
git checkout ${FROM_BRANCH}

# Get the current branch
export PAGER=cat
CURRENT_BRANCH=$(git log -n 1 --pretty=%d HEAD | cut -d"," -f3 | cut -d" " -f2 | cut -d")" -f1)
echo "current branch is '$CURRENT_BRANCH'"

if [ "$CURRENT_BRANCH" = "$FROM_BRANCH" ] ; then
# Checkout the dev branch
#git checkout $FROM_BRANCH && \
#echo "Checking out $TO_BRANCH..." && \
echo "Checking out $TO_BRANCH..." && \

# Checkout the latest stable
git fetch origin ${TO_BRANCH}:${TO_BRANCH} && \
Expand Down

0 comments on commit 7581c4d

Please sign in to comment.