global .config/git/ignore not working in git-bash (windows)
vgropp opened this issue · comments
Volker Gropp commented
Describe the bug
Using a global gitignores in .config/git/ignore, or in ~/.gitconfig excludesfile=... does not work.
To Reproduce
Steps to reproduce the behavior:
- create a global gitignore with
foobar
in it - create
foobar
in workspace git status --proclain
does not show the file, but powerline-go shows a change
Expected behavior
powerline-go git status and git status --porcelain
should match
Environment (please complete the following information):
- OS: windows
- Architecture: intel
- Shell: git-bash
Additional context
I could narrow it down to setting the env to the git cmd in
Line 107 in b51cc19
Whats the reason to use this stripped down environment for the git cmd?
"HOME" is not set in windows, its "USERPROFILE",
Lines 33 to 39 in b51cc19