Skip to content

Commit

Permalink
hardcode gitconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
maci3jka committed Nov 5, 2024
1 parent 072a204 commit e66351f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build-scripts/addons/repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,3 @@ done
echo "${ADDONS_REPOS_ENABLED}" > addons/.auto-add

cp -r "addons" "${INSTALL}/addons"

cat > ${INSTALL}/gitconfig << EOF
[safe]
directory = /snap/microk8s/current/addons/community/.git
EOF
3 changes: 3 additions & 0 deletions microk8s-resources/gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[safe]
directory = /snap/microk8s/current/addons/community/.git
directory = /snap/microk8s/current/addons/core/.git
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ parts:
cp client.config.template "${SNAPCRAFT_PART_INSTALL}/client.config.template"
cp kubelet.config.template "${SNAPCRAFT_PART_INSTALL}/kubelet.config.template"
cp client-x509.config.template "${SNAPCRAFT_PART_INSTALL}/client-x509.config.template"
cp gitconfig "${SNAPCRAFT_PART_INSTALL}/gitconfig"
cp -r wrappers/* "${SNAPCRAFT_PART_INSTALL}/"
cp -r actions/ "${SNAPCRAFT_PART_INSTALL}/actions"
Expand Down

0 comments on commit e66351f

Please sign in to comment.