snap: Add read access for ~/.gitconfig.local and ~/.config/git/* too

in hugo:gitconfig plug (personal-files interface) in case end users need
the flexibility of using additional custom git config files.

Fixes #10337
This commit is contained in:
Anthony Fok 2023-02-03 05:02:35 -07:00 committed by Bjørn Erik Pedersen
parent 1477d0ba90
commit d4482e8bf4

View file

@ -28,7 +28,8 @@ plugs:
interface: personal-files interface: personal-files
read: read:
- $HOME/.gitconfig - $HOME/.gitconfig
- $HOME/.config/git/config - $HOME/.config/git # Allows $HOME/.config/git/config and more
- $HOME/.gitconfig.local # See #10337
environment: environment:
HOME: $SNAP_REAL_HOME HOME: $SNAP_REAL_HOME