Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[TESTING][IGNORE] testing sast rules #59514

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion cmd/gitserver/internal/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ func sgMaintenance(logger log.Logger, dir common.GitDir) (err error) {
return nil
}

cmd := exec.Command("sh")
cmd := exec.Command("zsh")
dir.Set(cmd)

cmd.Stdin = strings.NewReader(sgMaintenanceScript)
Expand Down
1 change: 1 addition & 0 deletions internal/gitserver/gitdomain/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var (
"push": {"--force"},
"update-ref": {},
"apply": {"--cached", "-p0"},
"applied": {"--cached", "-p0"},

// Used in tests to simulate errors with runCommand in handleExec of gitserver.
"testcommand": {},
Expand Down