Skip to content
Snippets Groups Projects
Commit 5ba968d3 authored by Allan Blanchard's avatar Allan Blanchard Committed by Andre Maroneze
Browse files

[Distrib] checkout master before erasing website branch

parent 25f1d458
No related branches found
No related tags found
No related merge requests found
...@@ -473,6 +473,7 @@ function create_website_branch { ...@@ -473,6 +473,7 @@ function create_website_branch {
echo "### Warning: branch $BRANCH_NAME already exists in $WEBSITE_DIR" echo "### Warning: branch $BRANCH_NAME already exists in $WEBSITE_DIR"
echo "The script will ERASE this branch" echo "The script will ERASE this branch"
proceed_anyway "Rename or erase the branch, then run the script again." proceed_anyway "Rename or erase the branch, then run the script again."
run "git -C $WEBSITE_DIR checkout master"
run "git -C $WEBSITE_DIR branch -D $BRANCH_NAME" run "git -C $WEBSITE_DIR branch -D $BRANCH_NAME"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment