aboutsummaryrefslogtreecommitdiffstats
path: root/repository/gogit.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-11-16 14:41:26 +0100
committerMichael Muré <batolettre@gmail.com>2022-11-16 14:41:26 +0100
commit3c0fcb745634d28138a6a3d220d59e5766198061 (patch)
tree02d8a288d7468a6b3262e55551061d3055f78483 /repository/gogit.go
parentb02ba48ad64bd246cefc4f4646b48676b645220a (diff)
downloadgit-bug-3c0fcb745634d28138a6a3d220d59e5766198061.tar.gz
gogit: fix incorrect loader handling
Diffstat (limited to 'repository/gogit.go')
-rw-r--r--repository/gogit.go2
1 files changed, 1 insertions, 1 deletions
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