From 1f22aa4977d6caec43f309b2591ec8bfe211eb88 Mon Sep 17 00:00:00 2001 From: Gunjan Gupta Date: Mon, 20 May 2024 16:07:14 +0530 Subject: [PATCH] limit git-sources.json file generation to specific commands --- lib/functions/general/git-ref2info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/general/git-ref2info.sh b/lib/functions/general/git-ref2info.sh index 277e701402..a2a12fe9ef 100644 --- a/lib/functions/general/git-ref2info.sh +++ b/lib/functions/general/git-ref2info.sh @@ -75,7 +75,7 @@ function memoized_git_ref_to_info() { exit_with_error "Failed to fetch SHA1 of '${MEMO_DICT[GIT_SOURCE]}' '${ref_type}' '${ref_name}' - make sure it's correct" fi - if [[ ${ref_type} == "branch" ]]; then + if [[ "${ARMBIAN_COMMAND}" == "artifact-config-dump-json" ]] && [[ ${ref_type} == "branch" ]]; then { flock -x 5 flock -x 6