aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation_pack.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operation_pack.go')
-rw-r--r--bug/operation_pack.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bug/operation_pack.go b/bug/operation_pack.go
index 1a8ef0db..74d15f50 100644
--- a/bug/operation_pack.go
+++ b/bug/operation_pack.go
@@ -12,7 +12,8 @@ import (
// 1: original format
// 2: no more legacy identities
-const formatVersion = 2
+// 3: Ids are generated from the create operation serialized data instead of from the first git commit
+const formatVersion = 3
// OperationPack represent an ordered set of operation to apply
// to a Bug. These operations are stored in a single Git commit.
@@ -158,13 +159,11 @@ func (opp *OperationPack) Write(repo repository.ClockedRepo) (repository.Hash, e
}
data, err := json.Marshal(opp)
-
if err != nil {
return "", err
}
hash, err := repo.StoreData(data)
-
if err != nil {
return "", err
}