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: while True:
choice = io.prompt_ask( choice = io.prompt_ask(
"Enter the number or name of the repository you want to work on,\n" "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 enter the name of a new project to create:"
"or press ENTER for a new project:"
) )
if not choice.strip():
break
try: try:
choice_num = int(choice) choice_num = int(choice)
if 1 <= choice_num <= len(git_repos): if 1 <= choice_num <= len(git_repos):