mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 17:36:07 +02:00
Fix handling of branches without sources
An empty branch without sources, has been treated like an empty repository without any commits, branches or sources.
This commit is contained in:
committed by
Viktor Egorov
parent
b6a5fbb930
commit
d355910d09
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Creation and Upload of a file for an empty branch with no sources
|
||||
@@ -268,7 +268,8 @@ const Breadcrumb: FC<Props> = ({
|
||||
const renderExtensionPoints = () => {
|
||||
if (
|
||||
binder.hasExtension<extensionPoints.ReposSourcesEmptyActionbar>("repos.sources.empty.actionbar", extProps) &&
|
||||
sources?._embedded?.children?.length === 0
|
||||
sources?._embedded?.children?.length === 0 &&
|
||||
(repository.type !== "git" || sources.revision === "HEAD")
|
||||
) {
|
||||
return (
|
||||
<ExtensionPoint<extensionPoints.ReposSourcesEmptyActionbar>
|
||||
|
||||
Reference in New Issue
Block a user