Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline creation should specify branch name when initialising git repository #3254

Open
alexlyttle opened this issue Oct 28, 2024 · 0 comments

Comments

@alexlyttle
Copy link

Description of feature

When creating a new pipeline with nf-core pipelines create, the new repository is initialised without specifying initial branch name. A small improvement would be to specify the initial branch name with the GitPython API. Currently, the initial branch should be master (and then main in the future as planned). Depending on a user's Git settings, the initial branch could be something other than this.

This change should be as simple as modifying line 440 of create.py to include the initial_branch keyword argument.

Some context: I am trying to find "gotchas" that might cause confusion as I am currently helping researchers build their own pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant