aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_repack.go
blob: 7773ac13dce30530360fd1412029e2425a65ac7e (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package testgit

import "testing"

// Repack runs "git repack" with args in the repository.
func (testRepo *TestRepo) Repack(tb testing.TB, args ...string) {
	tb.Helper()

	cmdArgs := make([]string, 0, len(args)+1)
	cmdArgs = append(cmdArgs, "repack")
	cmdArgs = append(cmdArgs, args...)
	_ = testRepo.Run(tb, cmdArgs...)
}