aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index d5dd4c59..d3d02c45 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -247,6 +247,11 @@ func (c *RepoCache) NewBugWithFiles(title string, message string, files []util.H
cached := NewBugCache(c, b)
c.bugs[b.Id()] = cached
+ err = c.bugUpdated(b.Id())
+ if err != nil {
+ return nil, err
+ }
+
return cached, nil
}
@@ -257,11 +262,13 @@ func (c *RepoCache) Fetch(remote string) (string, error) {
}
func (c *RepoCache) MergeAll(remote string) <-chan bug.MergeResult {
+ // Todo: update the cache properly
return bug.MergeAll(c.repo, remote)
}
// Pull does a Fetch and merge the updates into the local bug states
func (c *RepoCache) Pull(remote string, out io.Writer) error {
+ // Todo: update the cache properly
return bug.Pull(c.repo, out, remote)
}