Add git safe directory to snapcraft.yml

This commit is contained in:
JonnyWong16 2022-08-18 16:40:38 -07:00
parent 84fb1a2dc2
commit b2777e30f2
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -28,6 +28,7 @@ parts:
- git - git
override-pull: | override-pull: |
snapcraftctl pull snapcraftctl pull
git config --global --add safe.directory /data/parts/tautulli/src
TAG_FULL=$(git describe --tag) TAG_FULL=$(git describe --tag)
TAG=$(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)') TAG=$(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)')
BRANCH=$(git rev-parse --abbrev-ref HEAD) BRANCH=$(git rev-parse --abbrev-ref HEAD)