Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Fixed Import All deploying changes to files in a CSP application (#828)
- Fixed pull failure when deleted items have no internal or external name (#848)

## [2.13.0] - 2025-08-20

Expand Down
2 changes: 1 addition & 1 deletion cls/SourceControl/Git/PullEventHandler/IncrementalLoad.cls
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Method DeleteFile(item As %String = "", externalName As %String = "") As %Status
$$$ThrowOnError(sc)
} catch e {
set filename = ##class(SourceControl.Git.Utils).FullExternalName(item)
if '##class(%File).Exists(filename) {
if (filename = "") || '##class(%File).Exists(filename) {
do ##class(SourceControl.Git.Utils).RemoveRoutineTSH(item)
// file doesn't exist anymore despite error -- should be ok
set sc = $$$OK
Expand Down
10 changes: 8 additions & 2 deletions cls/SourceControl/Git/Utils.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1329,8 +1329,14 @@ ClassMethod UpdateRoutineTSH(InternalName As %String, tsh As %String) As %Status

ClassMethod RemoveRoutineTSH(InternalName As %String) As %Status
{
kill @..#Storage@("TSH", ##class(%Studio.SourceControl.Interface).normalizeName(InternalName))
quit $$$OK
Quit:(InternalName = "") $$$OK
Set tInternalName = ##class(%Studio.SourceControl.Interface).normalizeName(InternalName)

// Prevent a possible null subscript error
Quit:(tInternalName = "") $$$OK
Kill @..#Storage@("TSH", tInternalName)

Quit $$$OK
}

ClassMethod DeleteExternalFile(InternalName As %String) As %Status
Expand Down