[F3] mirroring a repository needs --mirror instead of --bare

This commit is contained in:
Earl Warren 2023-09-16 09:15:07 +02:00
parent af8c9de89f
commit 9941131920
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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)
},
},
}