From 806fe0bc2b2d14dc65e4277416da6e968189426d Mon Sep 17 00:00:00 2001 From: Songmu Date: Sun, 9 Oct 2022 16:39:16 +0900 Subject: [PATCH] don't update versionFile configuration if .tagpr file already exists --- tagpr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagpr.go b/tagpr.go index 9bed508..e5c868e 100644 --- a/tagpr.go +++ b/tagpr.go @@ -303,7 +303,7 @@ OUT: for i, v := range vfiles { vfiles[i] = strings.TrimSpace(v) } - } else { + } else if tp.cfg.versionFile == nil { vfile, err := detectVersionFile(".", currVer) if err != nil { return err