diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-03 21:33:34 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-03 21:39:10 +0200 |
commit | e2a0d178cfc5d552131c518778fa12ce5c5dc930 (patch) | |
tree | 7ad08f444e7e90e75dc950ecc2103d0095276988 | |
parent | 0728c0050d82171659474900c407e1b6dcee43a5 (diff) | |
download | git-bug-e2a0d178cfc5d552131c518778fa12ce5c5dc930.tar.gz |
bug: make sure the lamport values are set properly after a commit
-rw-r--r-- | bug/bug.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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), }) } |