aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-16 01:04:06 +0200
committerGitHub <noreply@github.com>2023-10-16 01:04:06 +0200
commitca946e7e2721cf62122e979d30f175c84a9dad48 (patch)
treeb78a483e6afc014e7d722611e8c311eae5b4d0a8
parentf07709cbb68e3936aa6bf730dbd6f2f10cf83628 (diff)
parent9dd158b70de7d6c962d58d06268125932cab5075 (diff)
downloadnextcloud-server-ca946e7e2721cf62122e979d30f175c84a9dad48.tar.gz
nextcloud-server-ca946e7e2721cf62122e979d30f175c84a9dad48.zip
Merge pull request #40068 from nextcloud/devcontainer-fix-git-config
[Devcontainer] move git setup to postStartCommand
-rw-r--r--.devcontainer/devcontainer.json1
-rwxr-xr-x.devcontainer/postStart.sh5
-rwxr-xr-x.devcontainer/setup.sh4
3 files changed, 6 insertions, 4 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 3fb1bf42e44..612b99fdcdd 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -3,6 +3,7 @@
"dockerComposeFile": "docker-compose.yml",
"service": "nextclouddev",
"postCreateCommand": ".devcontainer/setup.sh",
+ "postStartCommand": ".devcontainer/postStart.sh",
"forwardPorts": [
80,
8080,
diff --git a/.devcontainer/postStart.sh b/.devcontainer/postStart.sh
new file mode 100755
index 00000000000..20657a15a94
--- /dev/null
+++ b/.devcontainer/postStart.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Set git safe.directory
+git config --global --add safe.directory /var/www/html
+git config --global --add safe.directory /var/www/html/3rdparty \ No newline at end of file
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
index 3485d4f7257..11bee7175b7 100755
--- a/.devcontainer/setup.sh
+++ b/.devcontainer/setup.sh
@@ -3,10 +3,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )"
cd $DIR/
-# Set git safe.directory
-git config --global --add safe.directory /var/www/html
-git config --global --add safe.directory /var/www/html/3rdparty
-
git submodule update --init
# Codespace config