Skip to content

Commit e11b764

Browse files
committed
check file exists in OnBeforeTimestamp
1 parent 523d12e commit e11b764

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/SourceControl/Git/Extension.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Method OnBeforeTimestamp(InternalName As %String)
216216
if (clientServerHash '= "") {
217217
// suppress load / timestamp update if file on server was modified an extremely short time ago
218218
set file = ##class(SourceControl.Git.Utils).FullExternalName(InternalName)
219-
if (file '= "") {
219+
if (file '= "" && ##class(%File).Exists(file)) {
220220
set lastModifiedTime = ##class(%Library.File).GetFileDateModified(file)
221221
set diff = $System.SQL.Functions.DATEDIFF("ms",lastModifiedTime,$h)
222222
if (diff < 1000) {
@@ -366,3 +366,4 @@ Method AddToSourceControl(InternalName As %String, Description As %String = "")
366366
}
367367

368368
}
369+

0 commit comments

Comments
 (0)