Skip to content

Commit 9068eb3

Browse files
authored
Minor bug fixes in utils (#136)
* Don't ignore percent classes when getting the InternalName * Fix a bug where some mappings were not being respected when computing the external path even though they were being matched correctly. Co-authored-by: Sarmishta Velury <[email protected]>
1 parent 7620bb7 commit 9068eb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cls/SourceControl/Git/Utils.cls

+3-2
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ ClassMethod AddToSourceControl(InternalName As %String) As %Status
455455
set ec = $$$ADDSC(ec, sc)
456456
}
457457
for i=1:1:filenames{
458-
set FileInternalName = ##class(SourceControl.Git.Utils).NameToInternalName(filenames(i))
458+
set FileInternalName = ##class(SourceControl.Git.Utils).NameToInternalName(filenames(i), 0)
459459
set FileType = ##class(SourceControl.Git.Utils).Type(FileInternalName)
460460

461461
continue:..NormalizeExtension(FileInternalName)=item
@@ -1442,10 +1442,11 @@ ClassMethod Name(InternalName As %String) As %String
14421442
for{
14431443
set p=$order($$$SourceMapping(ext,p),-1)
14441444
quit:p=""
1445-
if ($extract(nam,1,$length(p))=p) && ($data(^Sources(ext,p),found)){
1445+
if ($extract(nam,1,$length(p))=p) && ($data($$$SourceMapping(ext,p),found)){
14461446
quit
14471447
}
14481448
}
1449+
14491450
if ($data(found)=0) && ($data($$$SourceMapping(ext,"*"),found)) && ('$$$GetSourceMapping(ext,"*","NoFolders")){
14501451
set default=0
14511452

0 commit comments

Comments
 (0)