releaser: Remove unused function

gitLog function is not used
This commit is contained in:
peaceiris 2019-07-20 18:46:13 +09:00 committed by Bjørn Erik Pedersen
parent ac101aba4f
commit 53da3881de

View file

@ -291,10 +291,6 @@ func gitVersionTagBefore(ref string) (string, error) {
return gitShort("describe", "--tags", "--abbrev=0", "--always", "--match", "v[0-9]*", ref+"^") return gitShort("describe", "--tags", "--abbrev=0", "--always", "--match", "v[0-9]*", ref+"^")
} }
func gitLog() (string, error) {
return gitLogBefore("HEAD", "", "")
}
func gitShort(args ...string) (output string, err error) { func gitShort(args ...string) (output string, err error) {
output, err = git(args...) output, err = git(args...)
return strings.Replace(strings.Split(output, "\n")[0], "'", "", -1), err return strings.Replace(strings.Split(output, "\n")[0], "'", "", -1), err