Skip to content

Commit

Permalink
fix: if empty argument for command line
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 22, 2020
1 parent 0b6ba0c commit 9c79fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1_parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Parse(git *client.GitClient, ranges string) (*Scope, error) {
versions := strings.Split(ranges, "~")

if ranges == "" {
versions = append(versions, "HEAD")
versions[0] = "HEAD"
latestTag, err := git.TagN(0)

if err != nil {
Expand Down

0 comments on commit 9c79fd9

Please sign in to comment.