From 3c0fcb745634d28138a6a3d220d59e5766198061 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 16 Nov 2022 14:41:26 +0100 Subject: gogit: fix incorrect loader handling --- repository/gogit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository') diff --git a/repository/gogit.go b/repository/gogit.go index 7dd5a48d..c1f1fe37 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -80,7 +80,7 @@ func OpenGoGitRepo(path, namespace string, clockLoaders []ClockLoader) (*GoGitRe localStorage: osfs.New(filepath.Join(path, namespace)), } - loaderToRun := make([]ClockLoader, len(clockLoaders)) + loaderToRun := make([]ClockLoader, 0, len(clockLoaders)) for _, loader := range clockLoaders { loader := loader allExist := true -- cgit