diff --git a/CHANGELOG.md b/CHANGELOG.md index ab382ac3b..6ea946cd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed issue where 403 errors were being raised during a user driven permission sync against a self-hosted code host. [#729](https://github.com/sourcebot-dev/sourcebot/pull/729) - Fixed "ambiguous argument 'HEAD^{commit}': unknown revision or path not in the working tree" error for blank repositories. [#733](https://github.com/sourcebot-dev/sourcebot/pull/733) +- Fixed issue where folders containing files with non-ASCII characters in their paths would appear duplicated in the file tree. [#726](https://github.com/sourcebot-dev/sourcebot/pull/726) ## [4.10.8] - 2026-01-13 diff --git a/packages/web/src/features/fileTree/api.ts b/packages/web/src/features/fileTree/api.ts index e5f34e89d..ed4c7aede 100644 --- a/packages/web/src/features/fileTree/api.ts +++ b/packages/web/src/features/fileTree/api.ts @@ -37,6 +37,8 @@ export const getTree = async (params: { repoName: string, revisionName: string } let result: string; try { result = await git.raw([ + // Disable quoting of non-ASCII characters in paths + '-c', 'core.quotePath=false', 'ls-tree', revisionName, // recursive @@ -117,6 +119,8 @@ export const getFolderContents = async (params: { repoName: string, revisionName let result: string; try { result = await git.raw([ + // Disable quoting of non-ASCII characters in paths + '-c', 'core.quotePath=false', 'ls-tree', revisionName, // format as output as {type},{path} @@ -166,6 +170,8 @@ export const getFiles = async (params: { repoName: string, revisionName: string let result: string; try { result = await git.raw([ + // Disable quoting of non-ASCII characters in paths + '-c', 'core.quotePath=false', 'ls-tree', revisionName, // recursive