Skip to content

Commit d9671c2

Browse files
committed
Normalize the file extension before adding to source control
1 parent 1668b4a commit d9671c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ ClassMethod AddToSourceControl(InternalName As %String) As %Status
451451
set ec = $$$ADDSC(ec, sc)
452452
}
453453
for i=1:1:filenames{
454-
set FileInternalName = ##class(SourceControl.Git.Utils).NameToInternalName(filenames(i), 0)
454+
set FileInternalName = ##class(SourceControl.Git.Utils).NormalizeExtension(##class(SourceControl.Git.Utils).NameToInternalName(filenames(i), 0))
455455
set FileType = ##class(SourceControl.Git.Utils).Type(FileInternalName)
456456

457457
set @..#Storage@("items", FileInternalName) = ""
@@ -836,6 +836,7 @@ ClassMethod IsInSourceControl(InternalName As %String, ByRef sourceControlItem A
836836
{
837837
#dim isInSourceControl as %Boolean = 1
838838
set sourceControlItem = ""
839+
set InternalName = ##class(SourceControl.Git.Utils).NormalizeExtension(InternalName)
839840
if (InternalName = "") {
840841
quit 0
841842
}
@@ -1621,3 +1622,4 @@ ClassMethod GetSourceControlInclude() As %String
16211622
}
16221623

16231624
}
1625+

0 commit comments

Comments
 (0)