Skip to content

Commit 6fe9dcc

Browse files
committed
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 <[email protected]>
1 parent dbf7772 commit 6fe9dcc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎packages/system/dashboard/Makefile‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ include ../../../hack/package.mk
1111
image: image-console image-token-proxy
1212

1313
CONSOLE_REPO ?= https://github.com/cozystack/cozystack-ui.git
14-
CONSOLE_REF ?= dd1ff0bdbd5e6e2fb6614fd1d831c4cb5c8f8025
14+
CONSOLE_BRANCH ?= main
1515

1616
image-console: clone-console build-console update-values-console clean-console
1717

1818
clone-console:
1919
rm -rf .tmp-cozystack-ui
20-
git init .tmp-cozystack-ui
21-
git -C .tmp-cozystack-ui remote add origin $(CONSOLE_REPO)
22-
git -C .tmp-cozystack-ui fetch --depth 1 origin $(CONSOLE_REF)
23-
git -C .tmp-cozystack-ui checkout FETCH_HEAD
20+
git clone --depth 1 --branch $(CONSOLE_BRANCH) $(CONSOLE_REPO) .tmp-cozystack-ui
2421

2522
build-console:
2623
docker buildx build .tmp-cozystack-ui \

0 commit comments

Comments
 (0)