@@ -62,7 +62,7 @@ async def _perform_minimal_clone(self, path: str, remote: str) -> None:
6262 )
6363 self .logger .info ("Initializing minimal clone" )
6464 await run_shell_command (
65- ["git" , "clone" , "--depth=1" , "--no-tags" , "--single-branch" , remote , path ], cwd = path
65+ ["git" , "clone" , "--depth=1" , "--no-tags" , "--single-branch" , remote , "." ], cwd = path
6666 )
6767 self .logger .info ("Minimal clone initialized successfully" )
6868
@@ -280,7 +280,9 @@ async def _calculate_batch_depth(self, repo_path: str, remote: str) -> int:
280280 async def _perform_full_clone (self , repo_path : str , remote : str ):
281281 """Perform full repository clone"""
282282 self .logger .info (f"Performing full clone for repo { remote } ..." )
283- await run_shell_command (["git" , "clone" , remote , repo_path ], cwd = repo_path )
283+ await run_shell_command (
284+ ["git" , "clone" , "--no-tags" , "--single-branch" , remote , "." ], cwd = repo_path
285+ )
284286 self .logger .info (f"Successfully completed full clone of repository: { remote } " )
285287
286288 async def has_default_branch_changed (self , remote : str , saved_branch : str | None ) -> bool :
0 commit comments