Skip to content

Commit

Permalink
Fix latestTag issue
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Hammad <amir.hammad@streamunlimited.com>
  • Loading branch information
stream-aha committed Dec 15, 2016
1 parent b6e097a commit a366a85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ func runFetch (c *cli.Context) error {
}
}

if len(latestTag) == 0 {
latestTag = options.TagConstraint
if latestTag[0] == '=' {
latestTag = latestTag[1:]
}
}

// Prepare the vars we'll need to download
repo, err := ParseUrlIntoGitHubRepo(options.RepoUrl, options.GithubToken)
if err != nil {
Expand Down

0 comments on commit a366a85

Please sign in to comment.