workaround to set correct git branch or tag when building