Skip to content

Commit

Permalink
do not switch to current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Nov 22, 2023
1 parent a7204e4 commit 653f8a2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/src/main/asciidoc/ghpages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,6 @@ function commit_changes_if_applicable() {
fi
}

# Switch back to the previous branch and exit block
function checkout_previous_branch() {
# If -version was provided we need to come back to root project
cd ${ROOT_FOLDER}
git checkout ${CURRENT_BRANCH} || echo "Failed to check the branch... continuing with the script"
if [ "$dirty" != "0" ]; then git stash pop; fi
exit 0
}

# Assert if properties have been properly passed
function assert_properties() {
echo "VERSION [${VERSION}], DESTINATION [${DESTINATION}], CLONE [${CLONE}]"
Expand Down Expand Up @@ -337,4 +328,3 @@ build_docs_if_applicable
retrieve_doc_properties
stash_changes
add_docs_from_target
checkout_previous_branch

0 comments on commit 653f8a2

Please sign in to comment.