Skip to content

Adding new file over isfs no longer throws "system cannot find the file specified" error #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cls/SourceControl/Git/Extension.cls
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Method OnBeforeTimestamp(InternalName As %String)
if (clientServerHash '= "") {
// suppress load / timestamp update if file on server was modified an extremely short time ago
set file = ##class(SourceControl.Git.Utils).FullExternalName(InternalName)
if (file '= "") {
if (file '= "" && ##class(%File).Exists(file)) {
set lastModifiedTime = ##class(%Library.File).GetFileDateModified(file)
set diff = $System.SQL.Functions.DATEDIFF("ms",lastModifiedTime,$h)
if (diff < 1000) {
Expand Down Expand Up @@ -366,3 +366,4 @@ Method AddToSourceControl(InternalName As %String, Description As %String = "")
}

}