@@ -26,17 +26,17 @@ ClassMethod Run()
26
26
Do ##class (SourceControl.Git.API ).Pull ()
27
27
} ElseIf %request .Get (" method" ) = " init" {
28
28
set root = %request .Get (" root" )
29
-
29
+
30
30
// Use user input if provided
31
31
if (root '= " " ) && ($extract (root ,1 ,3 ) '= " e.g" ) {
32
32
set settings = ##class (SourceControl.Git.Settings ).%New ()
33
33
set settings .namespaceTemp = root
34
34
$$$ThrowOnError(settings .%Save ())
35
35
if ($extract (root , $length (root )) = " \" ) || ($extract (root , $length (root )) = " /" ) {
36
- set root = $extract (root , 1 , $length (root ) - 1 )
37
- }
38
- set root = $translate (root , " \" , " /" )
39
- do ##class (SourceControl.Git.Utils ).RunGitCommandWithInput (" config" ,,,," --global" , " --add" , " safe.directory" , root )
36
+ set root = $extract (root , 1 , $length (root ) - 1 )
37
+ }
38
+ set root = $translate (root , " \" , " /" )
39
+ do ##class (SourceControl.Git.Utils ).RunGitCommandWithInput (" config" ,,,," --global" , " --add" , " safe.directory" , root )
40
40
}
41
41
42
42
Do ##class (SourceControl.Git.Utils ).Init ()
0 commit comments