aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-04-16 10:31:36 +0200
committerJavi Fontan <jfontan@gmail.com>2018-04-16 10:31:36 +0200
commitc3a16106607896973b01aade084706aaf074bce4 (patch)
tree8b75506d0b61f09d31b959f392740d489325a27c /storage/filesystem/internal/dotgit
parent0db54e829f81a28f71c22d54c03daba5ec144c8d (diff)
downloadgo-git-c3a16106607896973b01aade084706aaf074bce4.tar.gz
storage: dotgit, init fixtures in benchmark. Fixes #770
fixtures is not initialized in BenchmarkRefMultipleTimes and caused panic. Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'storage/filesystem/internal/dotgit')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go
index 2c43295..02cd9ec 100644
--- a/storage/filesystem/internal/dotgit/dotgit_test.go
+++ b/storage/filesystem/internal/dotgit/dotgit_test.go
@@ -151,6 +151,7 @@ func (s *SuiteDotGit) TestRefsFromReferenceFile(c *C) {
}
func BenchmarkRefMultipleTimes(b *testing.B) {
+ fixtures.Init()
fs := fixtures.Basic().ByTag(".git").One().DotGit()
refname := plumbing.ReferenceName("refs/remotes/origin/branch")