File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -796,10 +796,11 @@ def init(
796796 ))
797797
798798 # Check git only if we might need it (not --no-git)
799- git_available = True
799+ # Only set to True if the user wants it and the tool is available
800+ should_init_git = False
800801 if not no_git :
801- git_available = check_tool ("git" , "https://git-scm.com/downloads" )
802- if not git_available :
802+ should_init_git = check_tool ("git" , "https://git-scm.com/downloads" )
803+ if not should_init_git :
803804 console .print ("[yellow]Git not found - will skip repository initialization[/yellow]" )
804805
805806 # AI assistant selection
@@ -900,7 +901,7 @@ def init(
900901 tracker .start ("git" )
901902 if is_git_repo (project_path ):
902903 tracker .complete ("git" , "existing repo detected" )
903- elif git_available :
904+ elif should_init_git :
904905 if init_git_repo (project_path , quiet = True ):
905906 tracker .complete ("git" , "initialized" )
906907 else :
You can’t perform that action at this time.
0 commit comments