Skip to content

Commit

Permalink
set default value for default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Aug 27, 2024
1 parent da91519 commit ed0fb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nf_core/pipelines/create/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
template_config: Optional[Union[CreateConfig, str, Path]] = None,
organisation: str = "nf-core",
from_config_file: bool = False,
default_branch: Optional[str] = None,
default_branch: str = "main",
is_interactive: bool = False,
) -> None:
if isinstance(template_config, CreateConfig):
Expand Down Expand Up @@ -431,7 +431,7 @@ def get_default_branch(self) -> None:
) # default to main
except configparser.Error:
log.debug("Could not read init.defaultBranch")
if self.default_branch is not None and self.default_branch in ["dev", "TEMPLATE"]:
if self.default_branch in ["dev", "TEMPLATE"]:
raise UserWarning(
f"Your Git defaultBranch '{self.default_branch}' is incompatible with nf-core.\n"
"'dev' and 'TEMPLATE' can not be used as default branch name.\n"
Expand Down

0 comments on commit ed0fb1b

Please sign in to comment.