From cca465436cd2d0c3ff97f716fe9761efadfeba2a Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Wed, 23 Apr 2025 23:43:29 +0300 Subject: [PATCH] luci-base: Hardcode 'openwrt-24.10' as the branch name Hardcode 'openwrt-24.10' release branch as the branch name to avoid 'LuCI (HEAD detached at 2ac26e56) branch' being shown as the branch. Feeds are since March 2025 cloned shallow if cloned from a specific commit, like done with a release tag. Change in OpenWrt: https://github.com/openwrt/openwrt/commit/32d0a57dc10811a24816e51f10e55963f40fe462 As the only cloned commit of a release tag is without history, the branch can't be identified. So, hardcode the branch name to get the proper branch name 'LuCI openwrt-24.10 branch'. Fixes #7737 Signed-off-by: Hannu Nyman --- modules/luci-base/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-base/Makefile b/modules/luci-base/Makefile index d9832e3393..ad20d765aa 100644 --- a/modules/luci-base/Makefile +++ b/modules/luci-base/Makefile @@ -9,6 +9,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-base PKG_BUILD_FLAGS:=no-lto +# Hardcode 'openwrt-24.10' release branch as the branch name +PKG_GITBRANCH:=LuCI openwrt-24.10 branch + LUCI_TYPE:=mod LUCI_BASENAME:=base