shithub: furgit

ref: 79c40dcb08f0d512bd6d75d5e2acd3ddceec4530
dir: /internal/testgit/repo_repack.go/

View raw version
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...)
}