aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-10-15 12:25:40 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2018-10-15 12:25:40 +0200
commit323d084635349bf9dbe7b29d1a20442a204ad2b1 (patch)
treebb595fba595a07ab2178096a421fc827afae4a1d
parent7a77bde9448c15251cdcca14db20b7bf5c798692 (diff)
downloadgo-git-323d084635349bf9dbe7b29d1a20442a204ad2b1.tar.gz
teach ResolveRevision how to look up annotated tags, test
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
-rw-r--r--repository_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/repository_test.go b/repository_test.go
index 6959933..6c8014c 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -2071,8 +2071,7 @@ func (s *RepositorySuite) TestResolveRevision(c *C) {
func (s *RepositorySuite) TestResolveRevisionAnnotated(c *C) {
f := fixtures.ByURL("https://github.com/git-fixtures/tags.git").One()
- sto, err := filesystem.NewStorage(f.DotGit())
- c.Assert(err, IsNil)
+ sto := filesystem.NewStorage(f.DotGit(), cache.NewObjectLRUDefault())
r, err := Open(sto, f.DotGit())
c.Assert(err, IsNil)