topdir.mk: git-get-% -> current-branch

Currently git-get-% pulls into the master branch. Change that to pull
into the branch currently checked out in the workspace, because
that's the more likely use case if you want a quick update from
somewhere.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-02-21 12:08:47 +01:00
commit 9aba15cd88
2 changed files with 1 additions and 6 deletions

View file

@ -206,7 +206,7 @@ git-get-maintainer:
make git-get-$(call proj_query,getval global jw-maintainer)
git-get-%:
PGIT_SH_PROJECTS=. $(PGIT_SH) get --refspec $*:$(GIT_MAIN_BRANCH):$(GIT_MAIN_BRANCH)
PGIT_SH_PROJECTS=. $(PGIT_SH) get --refspec $*:$(GIT_MAIN_BRANCH):current-branch
pkg-manager-refresh:
$(PKG_MANAGER) refresh