Skip to content

Commit

Permalink
fixup! line patching exclude throw on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhardol committed May 10, 2021
1 parent 256da72 commit 42e27c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GitUI/Editor/FileViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ public void StageSelectedLines(bool stage)
{ !stage, "--reverse" }
};

string output = Module.GitExecutable.GetOutput(args, patch);
string output = Module.GitExecutable.GetOutput(args, patch, throwOnErrorOutput: false);
ProcessApplyOutput(output, patch, patchUpdateDiff: true);
}

Expand Down Expand Up @@ -1525,7 +1525,7 @@ public void ResetNoncommittedSelectedLines()
{ currentItemStaged, "--reverse --index" }
};

string output = Module.GitExecutable.GetOutput(args, patch);
string output = Module.GitExecutable.GetOutput(args, patch, throwOnErrorOutput: false);
if (EnvUtils.RunningOnWindows())
{
// remove file mode warnings
Expand Down Expand Up @@ -1582,7 +1582,7 @@ private void ApplySelectedLines(bool allFile, bool reverse)
"--whitespace=nowarn"
};

string output = Module.GitExecutable.GetOutput(args, patch);
string output = Module.GitExecutable.GetOutput(args, patch, throwOnErrorOutput: false);
ProcessApplyOutput(output, patch);
}

Expand Down

0 comments on commit 42e27c7

Please sign in to comment.