Merge pull request #1340 from scm-manager/bugfix/load_sources_with_offset

Handling of branch with slashes in source view
This commit is contained in:
eheimbuch
2020-09-21 14:56:58 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Branch not found right after creation ([#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))
- Overflow for too long branch names ([#1339](https://github.com/scm-manager/scm-manager/pull/1339)) - Overflow for too long branch names ([#1339](https://github.com/scm-manager/scm-manager/pull/1339))
- Set default branch in branch selector if nothing is selected ([#1338](https://github.com/scm-manager/scm-manager/pull/1338)) - Set default branch in branch selector if nothing is selected ([#1338](https://github.com/scm-manager/scm-manager/pull/1338))
- Handling of branch with slashes in source view ([#1340](https://github.com/scm-manager/scm-manager/pull/1340))
## [2.5.0] - 2020-09-10 ## [2.5.0] - 2020-09-10
### Added ### Added

View File

@@ -109,7 +109,12 @@ class FileTree extends React.Component<Props, State> {
} }
loadMore = () => { 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 = () => { renderTruncatedInfo = () => {