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:
Thomas Zerr
2026-03-31 10:08:43 +00:00
committed by Viktor Egorov
parent b6a5fbb930
commit d355910d09
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Creation and Upload of a file for an empty branch with no sources

View File

@@ -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>