Fix: the config never has chance to save Global source if XDG source exists.
I got a little problem and trace it to here(line 134~137). The logic there is a little different with line 107~113.
OK, then, here is the steps of my problem:
- Open Settings
- Go "Git" node/page
- Click "Global"
- Change "AutoCrlf"
- Push "Apply" button
Consider the priority of settings, should be Local > Global > XDG > System (from the comment of GfW issue #316)
Then, in my test, TortoiseGit always saves config to XDG only, and read it back from Global. This leads to the effective setting is never changed.