-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Labels
Description
Hi,
just a question - #164 added support for branch to be a part of style but it hard-codes masters as an expected default branch here
python-versioneer/src/git/from_vcs.py
Lines 77 to 81 in fe265fc
| branches = [branch[2:] for branch in branches] | |
| if "master" in branches: | |
| branch_name = "master" | |
| elif not branches: | |
| branch_name = None |
Since Github now defaults to main branch, there are repos with no master. I am curious if this should not be customizable/fetched from git. I cannot report an issue with that or anything, we just found it in the code and we wondering about the potential effects.
jGaboardi and hugovk