From 6fe9dcc1d1a1aef7118f2fc64c65dbf44f2cd924 Mon Sep 17 00:00:00 2001 From: IvanHunters Date: Thu, 30 Apr 2026 13:04:50 +0300 Subject: [PATCH] fix(dashboard): use git clone with branch instead of raw SHA fetch GitHub does not allow fetching arbitrary commits by SHA without uploadpack.allowReachableSHA1InWants. Replace the git init + fetch approach with a simple shallow clone of the main branch. Signed-off-by: IvanHunters --- packages/system/dashboard/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/system/dashboard/Makefile b/packages/system/dashboard/Makefile index ac833bea0..44b6f278d 100644 --- a/packages/system/dashboard/Makefile +++ b/packages/system/dashboard/Makefile @@ -11,16 +11,13 @@ include ../../../hack/package.mk image: image-console image-token-proxy CONSOLE_REPO ?= https://github.com/cozystack/cozystack-ui.git -CONSOLE_REF ?= dd1ff0bdbd5e6e2fb6614fd1d831c4cb5c8f8025 +CONSOLE_BRANCH ?= main image-console: clone-console build-console update-values-console clean-console clone-console: rm -rf .tmp-cozystack-ui - git init .tmp-cozystack-ui - git -C .tmp-cozystack-ui remote add origin $(CONSOLE_REPO) - git -C .tmp-cozystack-ui fetch --depth 1 origin $(CONSOLE_REF) - git -C .tmp-cozystack-ui checkout FETCH_HEAD + git clone --depth 1 --branch $(CONSOLE_BRANCH) $(CONSOLE_REPO) .tmp-cozystack-ui build-console: docker buildx build .tmp-cozystack-ui \