diff --git a/CHANGELOG.md b/CHANGELOG.md index 01cc120a..752cde7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changing remotes in the git project settings pages now works if remote is not already defined (#746) - User-specific basic mode setting can now be changed when settingsUIReadOnly is set (#775) - Fixed an error displaying the Web UI after reverting a commit (#776) +- Fixed errors exporting items when directory casing does not match mappings (#781) - Improved accessibility of UI when tabbing through items (#764) ## [2.11.0] - 2025-04-23 diff --git a/cls/SourceControl/Git/Utils.cls b/cls/SourceControl/Git/Utils.cls index 924da7dd..4d363558 100644 --- a/cls/SourceControl/Git/Utils.cls +++ b/cls/SourceControl/Git/Utils.cls @@ -748,11 +748,11 @@ ClassMethod Exists(ByRef pFilename) As %Boolean If ##class(%File).Exists(pFilename) { Return 1 } - Set tDirectory = ##class(%File).ParentDirectoryName(pFilename) + Set tDirectory = ##class(%File).GetDirectory(pFilename) If '##class(%File).DirectoryExists(tDirectory) { Return 0 } - Set tName = $Piece(pFilename, tDirectory, 2, *) + Set tName = ##class(%File).GetFilename(pFilename) Set tFileName = $Piece(tName, ".", 1, * - 1) Set tFileExt = $Piece(tName, ".", *) for tExt = $$$LOWER(tFileExt), $$$UPPER(tFileExt) { @@ -3219,4 +3219,3 @@ ClassMethod IsSchemaStandard(pName As %String = "") As %Boolean [ Internal ] } } -