@@ -32,13 +32,13 @@ private static async Task<bool> ExecuteAsync(GitCommandArgs gitCommandArgs, Acti
3232 if ( gitCommandArgs == null || string . IsNullOrEmpty ( gitCommandArgs . WorkingDirectory ) )
3333 {
3434 outputWindow ? . WriteToOutputWindowAsync ( "The working directory is invalid or not loaded yet" ) ;
35- return false ;
35+ return false ;
3636 }
3737
3838 if ( ! File . Exists ( GitPath ) )
3939 {
4040 outputWindow ? . WriteToOutputWindowAsync ( $ "Git executable not found at: { GitPath } ", true ) ;
41- return false ;
41+ return false ;
4242 }
4343
4444 outputWindow ? . WriteToOutputWindowAsync ( $ "Executing Git command: { gitCommandArgs . Argument } ", true ) ;
@@ -48,7 +48,7 @@ private static async Task<bool> ExecuteAsync(GitCommandArgs gitCommandArgs, Acti
4848 var startInfo = new ProcessStartInfo
4949 {
5050 FileName = GitPath ,
51- Arguments = $ "--no-pager --no-color { gitCommandArgs . Argument } " ,
51+ Arguments = gitCommandArgs . Argument ,
5252 WorkingDirectory = gitCommandArgs . WorkingDirectory ,
5353 UseShellExecute = false ,
5454 CreateNoWindow = true ,
@@ -131,7 +131,7 @@ public static async Task<List<string>> GetBranchesAsync(string repositoryPath)
131131 var isCompleted = await ExecuteAsync ( new GitCommandArgs ( )
132132 {
133133 WorkingDirectory = repositoryPath ,
134- Argument = "branch -a"
134+ Argument = "--no-pager branch -a --no-color "
135135 } , ( line ) =>
136136 {
137137 if ( ! string . IsNullOrWhiteSpace ( line ) )
@@ -175,7 +175,7 @@ public static async Task<bool> PruneAsync(string repositoryPath)
175175 {
176176 return await ExecuteAsync ( new GitCommandArgs ( )
177177 {
178- Argument = "prune" ,
178+ Argument = "worktree prune --expire=now " ,
179179 WorkingDirectory = repositoryPath
180180 } , ( line ) =>
181181 {
0 commit comments