]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
snap: Add read access for ~/.gitconfig.local and ~/.config/git/* too
authorAnthony Fok <foka@debian.org>
Fri, 3 Feb 2023 12:02:35 +0000 (05:02 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 3 Feb 2023 13:57:53 +0000 (14:57 +0100)
in hugo:gitconfig plug (personal-files interface) in case end users need
the flexibility of using additional custom git config files.

Fixes #10337

snap/snapcraft.yaml

index c09eb98ae0501ed85502fb4c6612199ab0ca901a..00ccc8abdfef04d2b5a19cf7351f59b811d111f1 100644 (file)
@@ -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