Skip to content

Commit f4d4f8e

Browse files
authored
Merge pull request #290 from intersystems/system-error-timestamp-fix
fixed system error (-2) returned instead of timestamp
2 parents 2f4fe2d + c613b03 commit f4d4f8e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Studio export path doesn't get weird mixed slahes on Windows (#252)
1919
- Fixed bug with adding mappings through the Settings page (#270)
2020
- Pulling add/delete of multiple non-IRIS files no longer causes error (#273)
21+
- Fixed -2 timestamp for some items (#275)
2122
- Reset SourceControlClass during module uninstall to prevent "Class does not exist error" (#285)
2223

2324
## [2.2.0] - 2023-06-05

cls/SourceControl/Git/Utils.cls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,10 @@ ClassMethod RoutineTSH(InternalName As %String) As %String
10011001
#dim type = ..Type(InternalName)
10021002
//for csp-files (csp,js,html,css, all that stored in csp/...) we always check for changes in external file
10031003
#dim tsh = $case(type,"csp":"",:$get(@..#Storage@("TSH", ..NormalizeExtension(InternalName))))
1004+
1005+
// in case an OS level error is returned
1006+
set:(($$$isUNIX & (tsh = -2)) || ($$$isWINDOWS & (tsh = -3))) tsh = 0
1007+
10041008
if tsh = "" {
10051009
#dim ts as %String = ##class(%RoutineMgr).TS(InternalName)
10061010
if ts '= "" {

0 commit comments

Comments
 (0)