Skip to content

Commit 96e1b59

Browse files
committed
Made OS agnostic
1 parent 646d0ca commit 96e1b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/SourceControl/Git/Settings.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ Method ConfigureBinPath(ByRef path As %String) As %Boolean
354354
// Sometimes path is quoted
355355
set path = $replace(path,"""","")
356356
if (##class(%File).DirectoryExists(path)) {
357-
set path = ##class(%File).Construct(path, "git.exe")
357+
set gitFile = $case($zversion(1),2:"git.exe",3:"git",0:"git")
358+
set path = ##class(%File).Construct(path, gitFile)
358359
}
359360

360361
if (##class(%File).Exists(path)) {

0 commit comments

Comments
 (0)