Skip to content

Commit 80e7dc4

Browse files
committed
Normalize slashes in ExternalName
Fixes #252
1 parent 18d1a7b commit 80e7dc4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cls/SourceControl/Git/Extension.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Method OnAfterDelete(InternalName As %String) As %Status
266266
/// the routine/class/csp item. This is often a filename to write the file out to.
267267
Method ExternalName(InternalName As %String) As %String
268268
{
269-
quit ##class(Utils).Name(InternalName)
269+
quit ##class(Utils).ExternalName(InternalName)
270270
}
271271

272272
Method IsReadOnly(InternalName As %String) As %Boolean
@@ -335,3 +335,4 @@ Method AddToSourceControl(InternalName As %String, Description As %String = "")
335335
}
336336

337337
}
338+

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ ClassMethod NormalizeFolder(folder As %String) As %String
441441

442442
ClassMethod ExternalName(InternalName As %String, ByRef MappingExists As %Boolean) As %String
443443
{
444-
quit ..Name(.InternalName,.MappingExists)
444+
quit $Replace(..Name(.InternalName,.MappingExists),"/",..#Slash)
445445
}
446446

447447
ClassMethod AddToServerSideSourceControl(InternalName As %String) As %Status

0 commit comments

Comments
 (0)