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

Cannot read configuration file at "$XDG_CONFIG_HOME/git/config" #6

Open
openjck opened this issue May 2, 2021 · 0 comments
Open

Cannot read configuration file at "$XDG_CONFIG_HOME/git/config" #6

openjck opened this issue May 2, 2021 · 0 comments

Comments

@openjck
Copy link

openjck commented May 2, 2021

Describe the feature or problem you’d like to solve

This snap can't open the Git configuration file if it is at $XDG_CONFIG_HOME/git/config, which is a valid alternative location which the Git client itself supports.

$ echo $XDG_CONFIG_HOME
/home/openjck/.config
$ gh pr checkout 100
warning: unable to access '/home/openjck/.config/git/config': Permission denied
warning: unable to access '/home/openjck/.config/git/config': Permission denied
fatal: unknown error occurred while reading the configuration files
/snap/gh/356/usr/bin/git: exit status 128

Proposed solution

Give the Snap access to read all files in $XDG_CONFIG_HOME/git.

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

1 participant