From d5cee302af95b49e44020d2de26b023bc7ac6663 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Tue, 9 Jul 2024 00:48:57 +0000 Subject: [PATCH 1/3] fix(devcontainer): configure git to install pre-commit --- .devcontainer/postAttach.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.devcontainer/postAttach.sh b/.devcontainer/postAttach.sh index fd2e0804..dd54cf3c 100755 --- a/.devcontainer/postAttach.sh +++ b/.devcontainer/postAttach.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash set -eu +git config --global --add safe.directory /home/compiler/site + pre-commit install --install-hooks From daf87f33ed85d8cebbe0fd2510bd4bb403c5e1b4 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Tue, 9 Jul 2024 01:15:06 +0000 Subject: [PATCH 2/3] fix: fix app dir --- .devcontainer/postAttach.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/postAttach.sh b/.devcontainer/postAttach.sh index dd54cf3c..d26c194e 100755 --- a/.devcontainer/postAttach.sh +++ b/.devcontainer/postAttach.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -eu -git config --global --add safe.directory /home/compiler/site +git config --global --add safe.directory /home/calitp/app pre-commit install --install-hooks From 1ac9af7e8b84337e17625e4cf475a3f0eabe1423 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Wed, 10 Jul 2024 21:02:33 +0000 Subject: [PATCH 3/3] fix: add git safe directory --- .devcontainer/postAttach.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/postAttach.sh b/.devcontainer/postAttach.sh index d26c194e..7c0e5b38 100755 --- a/.devcontainer/postAttach.sh +++ b/.devcontainer/postAttach.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -eu -git config --global --add safe.directory /home/calitp/app +# initialize pre-commit +git config --global --add safe.directory /calitp/app pre-commit install --install-hooks