aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bug/bug.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bug/bug.go b/bug/bug.go
index 2c71d71b..c8b7ae61 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -380,7 +380,7 @@ func (bug *Bug) Commit(repo repository.Repo) error {
return err
}
- editTime, err := repo.EditTimeIncrement()
+ bug.editTime, err = repo.EditTimeIncrement()
if err != nil {
return err
}
@@ -388,10 +388,10 @@ func (bug *Bug) Commit(repo repository.Repo) error {
tree = append(tree, repository.TreeEntry{
ObjectType: repository.Blob,
Hash: emptyBlobHash,
- Name: fmt.Sprintf(editClockEntryPattern, editTime),
+ Name: fmt.Sprintf(editClockEntryPattern, bug.editTime),
})
if bug.lastCommit == "" {
- createTime, err := repo.CreateTimeIncrement()
+ bug.createTime, err = repo.CreateTimeIncrement()
if err != nil {
return err
}
@@ -399,7 +399,7 @@ func (bug *Bug) Commit(repo repository.Repo) error {
tree = append(tree, repository.TreeEntry{
ObjectType: repository.Blob,
Hash: emptyBlobHash,
- Name: fmt.Sprintf(createClockEntryPattern, createTime),
+ Name: fmt.Sprintf(createClockEntryPattern, bug.createTime),
})
}