diff options
Diffstat (limited to 'cache/repo_cache_bug.go')
-rw-r--r-- | cache/repo_cache_bug.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go index f8bf5a2f..6af9fc04 100644 --- a/cache/repo_cache_bug.go +++ b/cache/repo_cache_bug.go @@ -461,15 +461,11 @@ func (c *RepoCache) NewBugWithFiles(title string, message string, files []reposi // well as metadata for the Create operation. // The new bug is written in the repository (commit) func (c *RepoCache) NewBugRaw(author *IdentityCache, unixTime int64, title string, message string, files []repository.Hash, metadata map[string]string) (*BugCache, *bug.CreateOperation, error) { - b, op, err := bug.CreateWithFiles(author.Identity, unixTime, title, message, files) + b, op, err := bug.Create(author.Identity, unixTime, title, message, files, metadata) if err != nil { return nil, nil, err } - for key, value := range metadata { - op.SetMetadata(key, value) - } - err = b.Commit(c.repo) if err != nil { return nil, nil, err |