limit git-sources.json file generation to specific commands

This commit is contained in:
Gunjan Gupta 2024-05-20 16:07:14 +05:30 committed by Igor
parent bcd50b8ecc
commit 1f22aa4977

View File

@ -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