mirror of
https://github.com/Luzifer/git-changerelease.git
synced 2024-12-20 19:11:17 +00:00
prevent running runtime checks in tests
This commit is contained in:
parent
73a387b378
commit
3a8b3b6703
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -43,7 +43,7 @@ var (
|
||||||
version = "dev"
|
version = "dev"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func prepareRun() {
|
||||||
if err := rconfig.Parse(&cfg); err != nil {
|
if err := rconfig.Parse(&cfg); err != nil {
|
||||||
log.Fatalf("Unable to parse commandline options: %s", err)
|
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() {
|
func main() {
|
||||||
|
prepareRun()
|
||||||
|
|
||||||
// Get last tag
|
// Get last tag
|
||||||
lastTag, err := gitSilent("describe", "--tags", "--abbrev=0")
|
lastTag, err := gitSilent("describe", "--tags", "--abbrev=0")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue