We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2b3fd commit 8002154Copy full SHA for 8002154
tests/units/test_init.rb
@@ -38,7 +38,9 @@ def test_git_init
38
assert(File.directory?(File.join(path, '.git')))
39
assert(File.exist?(File.join(path, '.git', 'config')))
40
assert_equal('false', repo.config('core.bare'))
41
- assert_equal("ref: refs/heads/master\n", File.read("#{path}/.git/HEAD"))
+
42
+ init_default_branch = `git config --get init.defaultBranch`.strip
43
+ assert_equal("ref: refs/heads/#{init_default_branch}\n", File.read("#{path}/.git/HEAD"))
44
end
45
46
0 commit comments