Skip to content

Commit 79c263b

Browse files
authored
Quoting inFile in the $zf call (#73)
Co-authored-by: Sarmishta Velury <[email protected]>
1 parent ae20aae commit 79c263b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
11471147
set errLog = ##class(%Library.File).TempFilename()
11481148

11491149
set command = $extract(..GitBinPath(),2,*-1)
1150-
set returnCode = $zf(-100,"/STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$case(inFile, "":"", :" /STDIN="_inFile),command,newArgs...)
1150+
set returnCode = $zf(-100,"/STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$case(inFile, "":"", :" /STDIN="_$$$QUOTE(inFile)),command,newArgs...)
11511151

11521152
set errStream = ##class(%Stream.FileCharacter).%OpenId(errLog,,.sc)
11531153
set outStream = ##class(%Stream.FileCharacter).%OpenId(outLog,,.sc)
@@ -1370,4 +1370,3 @@ ClassMethod GetSourceControlInclude() As %String
13701370
}
13711371

13721372
}
1373-

0 commit comments

Comments
 (0)