Skip to content

Commit 0aa61e9

Browse files
authored
Consistent filenames in add (#194)
* When we can't find a matching mapping we don't export the file. * Normalize the file extension before adding to source control Co-authored-by: Sarmishta Velury <isc-svelury@users.noreply.github.com>
1 parent 3c72844 commit 0aa61e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 2 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
}

0 commit comments

Comments
 (0)