Browse Source

Sujith :) ->
1. Added error handling parameters

sujith 1 month ago
parent
commit
3d81b9a569
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Assets/Arbitrator/Editor/Services/GitService.cs

+ 2 - 2
Assets/Arbitrator/Editor/Services/GitService.cs

@@ -726,10 +726,10 @@ namespace Terra.Arbitrator.Services
                 }
 
                 // 1. Discard all changes to tracked files
-                await ExecuteGitCommandAsync("reset --hard HEAD", projectRoot, null);
+                await ExecuteGitCommandAsync("reset --hard HEAD", projectRoot, null, 0);
 
                 // 2. Remove all untracked files and directories
-                await ExecuteGitCommandAsync("clean -fd", projectRoot, null);
+                await ExecuteGitCommandAsync("clean -fd", projectRoot, null, 0);
 
                 resolve("Successfully discarded all local changes.");
             }