1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

refactor: use context

This commit is contained in:
Carlos Alexandro Becker 2023-04-30 13:33:57 +00:00
parent 7858e3ee1a
commit 28ca70faae
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -8,7 +8,6 @@ import (
"github.com/charmbracelet/keygen"
"github.com/goreleaser/goreleaser/internal/git"
"github.com/goreleaser/goreleaser/internal/testctx"
"github.com/stretchr/testify/require"
)
@ -103,7 +102,7 @@ func GitMakeBareRepository(tb testing.TB) string {
tb.Helper()
dir := tb.TempDir()
_, err := git.Run(
testctx.New(),
context.Background(),
"-C", dir,
"-c", "init.defaultBranch=master",
"init",