-
Notifications
You must be signed in to change notification settings - Fork 192
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
Git default branch #1705
Git default branch #1705
Conversation
Hi @mirpedrol. I did not responsibly provide a complete suggestion in #1688. I wondered what would happen if the No [init] in .gitconfig
[init] but no defaultBranch in .gitconfig
Error handling exampleimport git
import configparser
try:
default_branch = git.config.GitConfigParser().get_value("init", "defaultBranch")
except configparser.Error:
log.info("Could not read init.defaultBranch")
default_branch = None |
Codecov Report
@@ Coverage Diff @@
## dev #1705 +/- ##
==========================================
+ Coverage 68.21% 68.23% +0.02%
==========================================
Files 57 57
Lines 6736 6744 +8
==========================================
+ Hits 4595 4602 +7
- Misses 2141 2142 +1
Continue to review full report at Codecov.
|
Closes #1688
If Git
defaultBranch
is set todev
orTEMPLATE
nf-core commands that create a new pipeline repository fail with nice error message and the pipeline git repository is not initialised.PR checklist
CHANGELOG.md
is updateddocs
is updated