aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-03 21:33:34 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-03 21:39:10 +0200
commite2a0d178cfc5d552131c518778fa12ce5c5dc930 (patch)
tree7ad08f444e7e90e75dc950ecc2103d0095276988
parent0728c0050d82171659474900c407e1b6dcee43a5 (diff)
downloadgit-bug-e2a0d178cfc5d552131c518778fa12ce5c5dc930.tar.gz
bug: make sure the lamport values are set properly after a commit
-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),
})
}