Skip to content

Commit

Permalink
feat(git): enable partial clones
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 15, 2023
1 parent 0633a4c commit 8b2f325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/git/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type ServiceHandler func(ctx context.Context, cmd ServiceCommand) error

// gitServiceHandler is the default service handler using the git binary.
func gitServiceHandler(ctx context.Context, svc Service, scmd ServiceCommand) error {
cmd := exec.CommandContext(ctx, "git", svc.Name()) // nolint: gosec
cmd := exec.CommandContext(ctx, "git", "-c", "uploadpack.allowFilter=true", svc.Name()) // nolint: gosec
cmd.Dir = scmd.Dir
if len(scmd.Args) > 0 {
cmd.Args = append(cmd.Args, scmd.Args...)
Expand Down

0 comments on commit 8b2f325

Please sign in to comment.