Skip to content

Failing test due to hardcoded refs/heads/master in tests/units/test_init.rb@test_git_init #587

Description

@liijunwei

Subject of the issue

Failing test

Your environment

  • git version: 2.37.1
  • version of ruby-git: commit 6f2b3fd
  • version of ruby: ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin20]

Steps to reproduce

  1. clone repo and cd into repo
  2. bundle
  3. git config init.defaultBranch main
  4. rake test

Expected behaviour

Expect test_git_init to pass

Actual behaviour

<"ref: refs/heads/master\n"> expected but was
<"ref: refs/heads/main\n">

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions