File: fix-initial-branch-name.patch

package info (click to toggle)
ruby-git 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,564 kB
  • sloc: ruby: 9,983; sh: 519; perl: 64; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
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