if!strings.HasPrefix(template.Ref,"refs/"){// Assume that the ref intended is always a branch - for tags users should use refs/tags/<ref>
iftemplate.Ref!=""&&!strings.HasPrefix(template.Ref,"refs/"){// Assume that the ref intended is always a branch - for tags users should use refs/tags/<ref>