Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions internal/verify/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ func TestRunClonesARemoteRepositoryThroughTheUsersGitSettings(t *testing.T) {
"the remote repository was cloned: %v", err)
}

// git runs one git command in dir and returns its output.
// git runs one fixture Git command in dir and returns its output. It disables
// automatic maintenance so a fixture can snapshot its files when the command
// returns.
func git(t *testing.T, dir string, args ...string) string {
t.Helper()
cmd := exec.Command("git", args...)
cmd := exec.Command("git", append([]string{"-c", "maintenance.auto=false"}, args...)...)
cmd.Dir = dir
out, err := cmd.CombinedOutput()
require.NoError(t, err, "%s", out)
Expand Down
Loading