@@ -16,15 +16,21 @@ Parameter ImportAfterGitMenuItems = ",Commit,Pull,Fetch,Push,";
16
16
17
17
Parameter GitContextMenuItems = " ,%Diff,%Blame," ;
18
18
19
- ClassMethod InstallNamespaceStorage () As %String [ CodeMode = expression ]
19
+ ClassMethod %SYSNamespaceStorage () As %String [ CodeMode = expression ]
20
20
{
21
21
$Replace (..#Storage," ^" ," ^[" " " _..#InstallNamespace_" " " ]" )
22
22
}
23
23
24
24
/// Returns root temp folder
25
- ClassMethod DefaultTemp () As %String [ CodeMode = expression ]
25
+ ClassMethod DefaultTemp () As %String
26
26
{
27
- $Get (@..InstallNamespaceStorage ()@(" %defaultTemp" ), " c:\temp\" )
27
+ set defaultTemp = " c:\temp\"
28
+ try {
29
+ set defaultTemp = $Get (@..%SYSNamespaceStorage ()@(" %defaultTemp" ), defaultTemp )
30
+ } catch e {
31
+ // no-op
32
+ }
33
+ quit defaultTemp
28
34
}
29
35
30
36
ClassMethod MakeError (msg As %String ) As %Status [ CodeMode = expression , Private ]
@@ -91,8 +97,13 @@ ClassMethod GitBinPath(Output isDefault) As %String
91
97
{
92
98
set isDefault = 0
93
99
set binPath = " git"
94
- if '$data (@..InstallNamespaceStorage ()@(" %gitBinPath" ),binPath )#2 {
95
- set isDefault = 1
100
+ try {
101
+ if '$data (@..%SYSNamespaceStorage ()@(" %gitBinPath" ),binPath )#2 {
102
+ set isDefault = 1
103
+ }
104
+ } catch e {
105
+ // no-op; requires git to be on path in this case.
106
+ // (can't easily change storage location for backward compatibility)
96
107
}
97
108
quit $case ($extract (binPath )," " " " :binPath ,:" " " " _binPath _" " " " )
98
109
}
@@ -1907,4 +1918,3 @@ ClassMethod BuildCEInstallationPackage(ByRef destination As %String) As %Status
1907
1918
}
1908
1919
1909
1920
}
1910
-
0 commit comments