@@ -23,13 +23,11 @@ ClassMethod execute(directory As %String = "", ByRef hooks As %String = "", meth
23
23
do :directory '=" " ..load (directory , .loadedHooks )
24
24
merge hooks = loadedHooks
25
25
26
- do ..log (" Executing hooks, method: " _ method )
27
-
28
26
/// Execute global hooks
29
- do ..execute ( hooks , method , " isc.git.hook.Global" )
27
+ do ..executeInternal (. hooks , method , " isc.git.hook.Global" )
30
28
31
29
/// Execute local hooks
32
- do ..execute ( hooks , method , " isc.git.hook.Local" )
30
+ do ..executeInternal (. hooks , method , " isc.git.hook.Local" )
33
31
} catch ex {
34
32
set sc = ex .AsStatus ()
35
33
}
@@ -49,8 +47,10 @@ ClassMethod executeInternal(ByRef hooks As %String = "", method As %String(VALUE
49
47
continue :class =type
50
48
continue :((type =" isc.git.hook.Local" ) && (..isDone (class )))
51
49
52
- $$$TOE(sc , $classmethod (class , type ))
53
- do :((type =" isc.git.hook.Local" ) && (type =" after" )) ..add (class )
50
+ do ..log (" Executing hook class: " _ class )
51
+
52
+ $$$TOE(sc , $classmethod (class , method ))
53
+ do :((type =" isc.git.hook.Local" ) && (method =" after" )) ..add (class )
54
54
}
55
55
}
56
56
@@ -59,7 +59,7 @@ ClassMethod load(directory As %String, Output hooks As %String)
59
59
{
60
60
do ..log (" Importing hooks dir " _ directory )
61
61
set hooks = " "
62
- do $system .OBJ .ImportDir (directory , ##class (isc.git.GitLab ).getExtWildcard (), " cukb" , .errors , 1 , .hooks )
62
+ do $system .OBJ .ImportDir (directory , ##class (isc.git.GitLab ).getExtWildcard (), " cukb /displaylog=0 " , .errors , 1 , .hooks )
63
63
throw :$get (errors ,0 )'=0 ##class (%Exception.General ).%New (" Hooks load error" )
64
64
}
65
65
0 commit comments