Issue #1954066: Packaging script can't handle a project with ambiguous refs (e.g. a branch and tag with the same name)