Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions runway/extension/merger/git/git_merger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func setupGitFixture(t *testing.T) gitFixture {
authorDir := filepath.Join(root, "author")

mustGit(t, root, "init", "--bare", "-b", "main", remoteDir)
mustGit(t, remoteDir, "config", "maintenance.auto", "false")

// Seed main with one initial commit so the Merger's reset/fetch flow has
// something to land on.
Expand Down Expand Up @@ -1453,11 +1454,13 @@ func (f gitFixture) newMerger(t *testing.T, defaultStrategy mergestrategypb.Stra
// environment installs hooks via the system git config (core.hooksPath =
// /etc/git-hooks) that interfere with test commits — point each test repo at an
// empty hooks dir to disarm them without resorting to --no-verify.
// Background maintenance is disabled because it would race t.TempDir cleanup.
func configRepo(t *testing.T, dir, name, email string) {
mustGit(t, dir, "config", "user.name", name)
mustGit(t, dir, "config", "user.email", email)
mustGit(t, dir, "config", "commit.gpgsign", "false")
mustGit(t, dir, "config", "tag.gpgsign", "false")
mustGit(t, dir, "config", "maintenance.auto", "false")
Comment thread
sbalabanov marked this conversation as resolved.
Resolved

hooksDir := filepath.Join(dir, ".no-hooks")
require.NoError(t, os.MkdirAll(hooksDir, 0o755))
Expand Down