From e2a0d178cfc5d552131c518778fa12ce5c5dc930 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 3 Sep 2018 21:33:34 +0200 Subject: bug: make sure the lamport values are set properly after a commit --- bug/bug.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bug') 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), }) } -- cgit