Skip to content

Commit eef1b4b

Browse files
authored
Merge pull request #11 from intersystems/minor-bug-fix
Minor bug fix to check for data in args before referencing it
2 parents 86b31c8 + 0223434 commit eef1b4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,8 +1105,12 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
11051105

11061106
for i=1:1:$g(args)
11071107
{
1108-
set newArgs($i(newArgs)) = args(i)
1108+
if ($DATA(args(i))) {
1109+
set newArgs($i(newArgs)) = args(i)
1110+
}
1111+
11091112
}
1113+
11101114
set outLog = ##class(%Library.File).TempFilename()
11111115
set errLog = ##class(%Library.File).TempFilename()
11121116
set returnCode = $zf(-100,"/STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$Case(inFile, "":"", :" /STDIN="_inFile),"git",newArgs...)

0 commit comments

Comments
 (0)