mirror of
https://codeberg.org/james-smith-za/git-tidy-python.git
synced 2026-01-15 11:19:24 +02:00
Fix bug in branch selection logic
I was looking at the wrong length. Need branch_list, not candidates.
This commit is contained in:
parent
79b57edf1a
commit
bcf6023034
1 changed files with 1 additions and 1 deletions
2
git-tidy
2
git-tidy
|
|
@ -111,7 +111,7 @@ def get_default_branch() -> str:
|
|||
|
||||
# If there's no clear default, let the user select which one to use:
|
||||
selection = -1
|
||||
while (selection < 0) or (selection >= len(candidates)):
|
||||
while (selection < 0) or (selection >= len(branch_list)):
|
||||
print("Unable to determine default branch automatically. Please select one:")
|
||||
for n, branch in enumerate(branch_list):
|
||||
print(f"{n}: {branch}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue