From 9941131920d0c9122121cd733d11779fa2ec8f00 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 16 Sep 2023 09:15:07 +0200 Subject: [PATCH] [F3] mirroring a repository needs --mirror instead of --bare --- services/f3/driver/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/f3/driver/repository.go b/services/f3/driver/repository.go index 34dd29de71..76d992e07d 100644 --- a/services/f3/driver/repository.go +++ b/services/f3/driver/repository.go @@ -74,7 +74,7 @@ func (o *RepositoryProvider) Get(ctx context.Context, user *User, project *Proje Name: exemplar.Name, FetchFunc: func(destination string) { o.g.GetLogger().Debug("RepositoryProvider:Get: git clone %s %s", repoPath, destination) - util.Command(ctx, "git", "clone", "--bare", repoPath, destination) + util.Command(ctx, "git", "clone", "--mirror", repoPath, destination) }, }, }