Skip to content

Commit

Permalink
pkg: allow the omission of the --filter argument in the case of git s…
Browse files Browse the repository at this point in the history
…ervers that do not support filtering (reduces warnings on output)
  • Loading branch information
david-vankampen committed Oct 23, 2023
1 parent ad9e4e7 commit 64aae44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/pkg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ ifeq ($(QUIET),1)
GIT_QUIET ?= --quiet
endif

ifeq (,$(NO_GIT_FILTERING))
GIT_FILTER ?= --filter=blob:none
endif

GITFLAGS ?= -c user.email=buildsystem@riot -c user.name="RIOT buildsystem"
GITAMFLAGS ?= $(GIT_QUIET) --no-gpg-sign --ignore-whitespace --whitespace=nowarn

Expand Down Expand Up @@ -144,7 +148,7 @@ $(PKG_SOURCE_DIR)/.git: | $(PKG_CUSTOM_PREPARED)
$(Q)$(GIT_IN_PKG) remote add origin $(PKG_URL)
$(Q)$(GIT_IN_PKG) config extensions.partialClone origin
$(Q)$(GIT_IN_PKG) config advice.detachedHead false
$(Q)$(GIT_IN_PKG) fetch $(GIT_QUIET) --depth=1 -t --filter=blob:none origin $(PKG_VERSION)
$(Q)$(GIT_IN_PKG) fetch $(GIT_QUIET) --depth=1 -t $(GIT_FILTER) origin $(PKG_VERSION)
$(Q)$(GIT_IN_PKG) checkout $(GIT_QUIET) $(PKG_VERSION) 2>&1 | cat
endif

Expand Down

0 comments on commit 64aae44

Please sign in to comment.