diff options
| -rw-r--r-- | internal/testgit/repo_repack.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/testgit/repo_repack.go b/internal/testgit/repo_repack.go new file mode 100644 index 00000000..29fa8a4f --- /dev/null +++ b/internal/testgit/repo_repack.go @@ -0,0 +1,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...) +} |
