Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status#changed? is case-sensitive despite git config #586

Open
ghost opened this issue Jul 2, 2022 · 0 comments
Open

Status#changed? is case-sensitive despite git config #586

ghost opened this issue Jul 2, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 2, 2022

Subject of the issue

When the git repo is configured to track files case-insensitively and a file name has a different letter case, Status#changed? will not report if the file has been modified.

Your environment

  • git (1.11.0)
  • ruby 2.7.3

Steps to reproduce

  • init a new git repo
  • (have default config core.ignoreCase true)
  • commit FILE
  • rename to file
  • edit file
  • in ruby-git, call Status#changed?("file")

Expected behaviour

expected to compare tracked file case-insensitively with given filename (ie "FILE".downcase == "file".downcase)

Actual behaviour

returns false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants