[#79975866] Support running mortar tasks on local clusters.

Can we say what `NO_GIT_REF_FLAG` means?