refactor: simplify repository selection prompt

This commit is contained in:
Paul Gauthier (aider) 2024-08-28 11:14:42 -07:00
parent 65cce58b0a
commit 2da8b57104

View file

@ -37,13 +37,9 @@ def setup_git_home(io):
while True:
choice = io.prompt_ask(
"Enter the number or name of the repository you want to work on,\n"
"or enter the name of a new project to create,\n"
"or press ENTER for a new project:"
"or enter the name of a new project to create:"
)
if not choice.strip():
break
try:
choice_num = int(choice)
if 1 <= choice_num <= len(git_repos):