Skip to content

Commit

Permalink
fix: Bug fixes related to #144
Browse files Browse the repository at this point in the history
  • Loading branch information
toritori0318 committed Jan 20, 2023
1 parent 3882d57 commit e264b41
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 e264b41

Please sign in to comment.