diff options
| author | 2026-02-20 19:06:13 +0800 | |
|---|---|---|
| committer | 2026-02-20 19:07:14 +0800 | |
| commit | aa513c069c1418734aea894dc944e27c6a78a3bb (patch) | |
| tree | 687f0a11bb550fa088fd82a98ceb8979bbc35f69 /testutil_sha1_test.go | |
| parent | Comment on prior reverts removing the pack writing API (diff) | |
| signature | No signature | |
Delete everything, I'm redesigning this.
I'll stop using a flat package and make things much more modular.
And also experiment with streaming APIs so large blobs don't OOM us.
Diffstat (limited to 'testutil_sha1_test.go')
| -rw-r--r-- | testutil_sha1_test.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/testutil_sha1_test.go b/testutil_sha1_test.go deleted file mode 100644 index c8ce87eb..00000000 --- a/testutil_sha1_test.go +++ /dev/null @@ -1,29 +0,0 @@ -//go:build sha1 - -package furgit - -import ( - "os" - "os/exec" - "testing" -) - -func setupTestRepo(t *testing.T) (string, func()) { - t.Helper() - tempDir, err := os.MkdirTemp("", "furgit-test-*.git") - if err != nil { - t.Fatalf("failed to create temp dir: %v", err) - } - cleanup := func() { - _ = os.RemoveAll(tempDir) - } - - cmd := exec.Command("git", "init", "--object-format=sha1", "--bare", tempDir) - cmd.Env = append(os.Environ(), "GIT_CONFIG_GLOBAL=/dev/null", "GIT_CONFIG_SYSTEM=/dev/null") - if output, err := cmd.CombinedOutput(); err != nil { - cleanup() - t.Fatalf("failed to init git repo: %v\n%s", err, output) - } - - return tempDir, cleanup -} |
