Skip to content

Commit

Permalink
Dont change branch during update without verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Aug 10, 2023
1 parent 3a39560 commit e66f734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exegol/manager/UpdateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __updateGit(gitUtils: GitUtils) -> bool:
if current_branch is None:
logger.warning("HEAD is detached. Please checkout to an existing branch.")
current_branch = "unknown"
if logger.isEnabledFor(ExeLog.VERBOSE) or current_branch not in ["master", "main"]:
if logger.isEnabledFor(ExeLog.VERBOSE):
available_branches = gitUtils.listBranch()
# Ask to checkout only if there is more than one branch available
if len(available_branches) > 1:
Expand Down

0 comments on commit e66f734

Please sign in to comment.