Skip to content

Commit 6a66fc5

Browse files
committed
Actually instantiate and call pull event class
1 parent bf9f472 commit 6a66fc5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,20 @@ ClassMethod Pull(remote As %String = "origin") As %Status
348348
write !
349349
do outStream.OutputToDevice()
350350
write !
351-
quit $$$OK
351+
352+
set event = $classmethod(..PullEventClass(),"%New")
353+
set event.LocalRoot = ..TempFolder()
354+
merge event.ModifiedFiles = files
355+
for i=1:1:$Get(files) {
356+
if $Data(files(i))#2 {
357+
set internalName = ##class(SourceControl.Git.Utils).NameToInternalName(..ModifiedFiles(i))
358+
if (internalName '= "") {
359+
set event.ModifiedItems(internalName) = ""
360+
}
361+
}
362+
}
363+
364+
quit event.OnPull()
352365
}
353366

354367
ClassMethod IsNamespaceInGit() As %Boolean [ CodeMode = expression ]

0 commit comments

Comments
 (0)