Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 323d084

Browse files
committed
teach ResolveRevision how to look up annotated tags, test
Signed-off-by: Máximo Cuadros <[email protected]>
1 parent 7a77bde commit 323d084

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

repository_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,8 +2071,7 @@ func (s *RepositorySuite) TestResolveRevision(c *C) {
20712071

20722072
func (s *RepositorySuite) TestResolveRevisionAnnotated(c *C) {
20732073
f := fixtures.ByURL("https://github.com/git-fixtures/tags.git").One()
2074-
sto, err := filesystem.NewStorage(f.DotGit())
2075-
c.Assert(err, IsNil)
2074+
sto := filesystem.NewStorage(f.DotGit(), cache.NewObjectLRUDefault())
20762075
r, err := Open(sto, f.DotGit())
20772076
c.Assert(err, IsNil)
20782077

0 commit comments

Comments
 (0)