Skip to content

Commit

Permalink
Fix running scripts without arguments
Browse files Browse the repository at this point in the history
Fixes #9660

because when there are no arguments, `argument` value is null
and the check is throwing an exception.

Remove the check because it doesn't cause a problem to the process
if null is passed...
  • Loading branch information
pmiossec committed Oct 25, 2021
1 parent 9f8c00c commit 24f71be
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions GitUI/Script/ScriptRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ private static CommandStatus RunScriptInternal(IWin32Window owner, IGitModule mo
new ExternalOperationException(scriptInfo.Command, arguments, module.WorkingDir));
}

Validates.NotNull(argument);

string command = OverrideCommandWhenNecessary(originalCommand);
command = ExpandCommandVariables(command, module);

Expand Down

0 comments on commit 24f71be

Please sign in to comment.