1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Set the initial branch name in a test
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Last-Update: 2026-02-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/units/test_set_index.rb
+++ b/tests/units/test_set_index.rb
@@ -17,7 +17,7 @@ class SetIndexTest < Test::Unit::TestCas
@repo_path = Dir.mktmpdir('git_test')
# Initialize a new Git repository in the temporary directory
- @repo = Git.init(@repo_path)
+ @repo = Git.init(@repo_path, initial_branch: 'main')
# Change into the repo directory to perform file operations
Dir.chdir(@repo_path) do
|