Skip to content

Commit

Permalink
Merge pull request #148 from toritori0318/issue-145-fix
Browse files Browse the repository at this point in the history
fix: Bug fixes related to #144
  • Loading branch information
Songmu authored Jan 20, 2023
2 parents 3882d57 + e264b41 commit 03e0453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tagpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ OUT:
addingLabels = append(addingLabels, l)
}
var vfiles []string
if vf := tp.cfg.VersionFile(); vf != "" {
if vf := tp.cfg.VersionFile(); vf != "" && vf != "-" {
vfiles = strings.Split(vf, ",")
for i, v := range vfiles {
vfiles[i] = strings.TrimSpace(v)
Expand Down Expand Up @@ -374,7 +374,7 @@ OUT:

// Reread the configuration file (.tagpr) as it may have been rewritten during the cherry-pick process.
tp.cfg.Reload()
if tp.cfg.VersionFile() != "" {
if tp.cfg.VersionFile() != "" && tp.cfg.VersionFile() != "-" {
vfiles = strings.Split(tp.cfg.VersionFile(), ",")
for i, v := range vfiles {
vfiles[i] = strings.TrimSpace(v)
Expand Down

0 comments on commit 03e0453

Please sign in to comment.