From 9f0ff33f469da711baa64a323c862b81f04c1e50 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Mon, 21 Sep 2020 12:05:07 +0200 Subject: [PATCH 1/2] Fix handling of slashes in branches in 'offset loading'-case --- scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx index 1e92f8cbcf..3d38cfd596 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx @@ -109,7 +109,12 @@ class FileTree extends React.Component { } loadMore = () => { - this.props.fetchSources(this.props.repository, this.props.revision, this.props.path, this.props.hunks.length); + this.props.fetchSources( + this.props.repository, + decodeURIComponent(this.props.revision), + this.props.path, + this.props.hunks.length + ); }; renderTruncatedInfo = () => { From a268eee3a46656e730466f1b98f72e98a89eff84 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Mon, 21 Sep 2020 12:14:17 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 208e2f7d4a..c6978c1e67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Missing synchronization during repository creation ([#1328](https://github.com/scm-manager/scm-manager/pull/1328)) - Missing BranchCreatedEvent for mercurial ([#1334](https://github.com/scm-manager/scm-manager/pull/1334)) - Branch not found right after creation ([#1334](https://github.com/scm-manager/scm-manager/pull/1334)) +- Handling of branch with slashes in source view ([#1340](https://github.com/scm-manager/scm-manager/pull/1340)) ## [2.5.0] - 2020-09-10 ### Added