blob: 29fa8a4f1e4f00dc3860163a2bf024a6dcf18012 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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...)
}
|