"Projects" view: "Author Details" from menu doesn't open if config file is in XDG_CONFIG_HOME
Submitted by Christian Stadelmann
Link to original bug (#777899)
Description
According to bug report #760119 this issue should be fixed in the 3.22 release branch, but under certain conditions it still happens:
Steps to reproduce: 0. have a ~/.config/git/config but no ~/.gitconfig file (*)
- open gitg
- open the sandwich menu
- click on "Author Details"
What happens: Nothing. No dialog is openend. No warnings on console, not even with G_MESSAGES_DEBUG=all set.
What should happen: Open dialog to input user name + email address.
Additional info: (*) git supports having its config file in XDG_CONFIG_HOME since version 1.7.12 released in August 2012. Instead of the fix you did, https://git.gnome.org/browse/gitg/commit/?id=09c661254af0ceaf05e97eab59a0c481fe9adeb0, how about leaving the config file creation to git/libgit? See also the docs in https://github.com/libgit2/libgit2/blob/89c332e41b12a72d89de40d63bc568c56a2c336a/include/git2/config.h#L250 and https://libgit2.github.com/libgit2/#HEAD/group/config/git_config_open_default
Installed software versions: gitg-3.22.0-2.fc25.x86_64 libgit2-glib-0.24.4-2.fc25.x86_64 git-core-2.9.3-2.fc25.x86_64 glib2-2.50.2-1.fc25.x86_64
Version: 3.22.x