From 9d2cba77960042bac49c9cfca9c58bb02cc54149 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 4 Sep 2024 11:57:58 +1000 Subject: [PATCH] fix: mount gitconfig to avoid git permissions errors --- .gitconfig | 4 ++++ run-bakery | 1 + 2 files changed, 5 insertions(+) create mode 100644 .gitconfig diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..6b537b2 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,4 @@ +[safe] + # Ignore the safe directories when building inside a container as the ownership + # of the repository folders can be unexpected + directory = * diff --git a/run-bakery b/run-bakery index bad8b43..6ebf133 100755 --- a/run-bakery +++ b/run-bakery @@ -23,6 +23,7 @@ fi exec $DOCKER run --rm --privileged \ $DOCKER_FLAGS \ -v "$(pwd)":/project \ + -v "$(pwd)/.gitconfig:/root/.gitconfig" \ -v /dev:/dev \ "${RUGPI_BAKERY_IMAGE}" \ "$@"