Skip to content

Commit

Permalink
snap: Add read access for ~/.gitconfig.local and ~/.config/git/* too
Browse files Browse the repository at this point in the history
in hugo:gitconfig plug (personal-files interface) in case end users need
the flexibility of using additional custom git config files.

Fixes gohugoio#10337
  • Loading branch information
anthonyfok committed Feb 3, 2023
1 parent 1477d0b commit 91ab4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ plugs:
interface: personal-files
read:
- $HOME/.gitconfig
- $HOME/.config/git/config
- $HOME/.config/git # Allows $HOME/.config/git/config and more
- $HOME/.gitconfig.local # See #10337

environment:
HOME: $SNAP_REAL_HOME
Expand Down

0 comments on commit 91ab4ca

Please sign in to comment.