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:
parent
7858e3ee1a
commit
28ca70faae
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user