Skip to content

Commit

Permalink
Rename default branch after committing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aratz committed Nov 22, 2022
1 parent db17b11 commit 4395637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nf_core/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,10 @@ def git_init_pipeline(self):

log.info("Initialising pipeline git repository")
repo = git.Repo.init(self.outdir)
if default_branch:
repo.active_branch.rename(default_branch)
repo.git.add(A=True)
repo.index.commit(f"initial template build from nf-core/tools, version {nf_core.__version__}")
if default_branch:
repo.active_branch.rename(default_branch)
repo.git.branch("TEMPLATE")
repo.git.branch("dev")
log.info(
Expand Down

0 comments on commit 4395637

Please sign in to comment.