1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-20 11:01:16 +00:00

prevent running runtime checks in tests

This commit is contained in:
Knut Ahlers 2016-07-14 14:41:32 +02:00
parent 73a387b378
commit 3a8b3b6703
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -43,7 +43,7 @@ var (
version = "dev"
)
func init() {
func prepareRun() {
if err := rconfig.Parse(&cfg); err != nil {
log.Fatalf("Unable to parse commandline options: %s", err)
}
@ -117,6 +117,8 @@ func quickTemplate(name string, tplSrc []byte, values map[string]interface{}) ([
}
func main() {
prepareRun()
// Get last tag
lastTag, err := gitSilent("describe", "--tags", "--abbrev=0")