summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/release.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/release.go b/models/release.go
index 274776b5c4..b38c2f5259 100644
--- a/models/release.go
+++ b/models/release.go
@@ -81,6 +81,7 @@ func createTag(gitRepo *git.Repository, rel *Release) error {
return fmt.Errorf("GetTagCommit: %v", err)
}
+ rel.Sha1 = commit.ID.String()
rel.NumCommits, err = commit.CommitsCount()
if err != nil {
return fmt.Errorf("CommitsCount: %v", err)