Skip to content
Snippets Groups Projects
Commit f81132b2 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Return the value from the local call

parent 549950b2
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ def _post_deploy(): ...@@ -156,7 +156,7 @@ def _post_deploy():
def _build_static(): def _build_static():
# Build a specific branch # Build a specific branch
build_branch = 'master' build_branch = 'master'
current_branch = local('git rev-parse --abbrev-ref HEAD') current_branch = local('git rev-parse --abbrev-ref HEAD', capture=True)
if current_branch != build_branch: if current_branch != build_branch:
raise RuntimeError("Please switch to '{}' before deploying".format(build_branch)) raise RuntimeError("Please switch to '{}' before deploying".format(build_branch))
......
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