Skip to content

Commit

Permalink
snap: Use interface names etc-gitconfig and gitconfig
Browse files Browse the repository at this point in the history
as recommended by @alexmurray to keep consistency with other snaps; see
https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598/2

Fixes #6226
  • Loading branch information
anthonyfok committed Jun 27, 2022
1 parent 165d299 commit cce2b05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ package-repositories:
url: https://deb.nodesource.com/node_16.x

plugs:
system-gitconfig:
etc-gitconfig:
interface: system-files
read:
- /etc/gitconfig
user-gitconfig:
gitconfig:
interface: personal-files
read:
- $HOME/.gitconfig
- $HOME/.config/git/config

apps:
hugo:
environment:
Expand All @@ -38,8 +38,8 @@ apps:
- home
- network-bind
- removable-media
- system-gitconfig
- user-gitconfig
- etc-gitconfig
- gitconfig

parts:
git:
Expand Down

0 comments on commit cce2b05

Please sign in to comment.