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