Skip to content

Commit

Permalink
Hotfix latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
emli committed Feb 6, 2018
1 parent 9ac2303 commit 9fb8c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func Info(repo string, r *http.Request) []byte {
}
}
if len(items) == 1 {
if version == "" && repo == "template" {
if version == "" && repo == "template" && itemLatestVersion.ID != "" {
items[0] = itemLatestVersion
}
items[0].Signature = db.FileSignatures(items[0].ID)
Expand Down

0 comments on commit 9fb8c0b

Please sign in to comment.