Open yatli opened 6 years ago
Does your repo have a .gitattributes
?
Hi @dahlbyk !
I've tried with different repos, some with .gitattributes
and some not. But the attr files don't explicitly write autocrlf
there -- it's the default global git configuration done with choco install -y git
.
To clarify, does explicitly setting core.autocrlf
in an affected repo (either with or without .gitattributes
) fix this?
Without calling git_config_open_default
or equivalent, I'm not sure if libgit2 will pick up global/system config.
I added autocrlf = true
in [core]
in .git/config
and it picks up the config.
I'm wondering if this problem is a single case, or it's because libgit2 is not synchronizing with the repo setting/global setting.