diff --git a/medusa/__main__.py b/medusa/__main__.py index 5142530e61..6666c8c206 100755 --- a/medusa/__main__.py +++ b/medusa/__main__.py @@ -523,10 +523,8 @@ def initialize(self, console_logging=True): if commit_branch_env and app.CUR_COMMIT_BRANCH != commit_branch_env: app.CUR_COMMIT_BRANCH = commit_branch_env - - if not app.BRANCH and app.CUR_COMMIT_BRANCH: # Overwrite the current branch for non-git installations like docker. - app.BRANCH = app.CUR_COMMIT_BRANCH + app.BRANCH = commit_branch_env # Asume we only have these environ variables when building a docker container. app.RUNS_IN_DOCKER = os.environ.get('MEDUSA_COMMIT_HASH') and os.environ.get('MEDUSA_COMMIT_BRANCH')