From e33d43b059c2bd245124e8f7aa4979e0b70915b2 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 21 Mar 2024 16:07:58 +0100 Subject: [PATCH] docs: Add one more git submodule setting to configure --- docs/HACKING.md | 1 + tools/git-setup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/HACKING.md b/docs/HACKING.md index 6dc9489124694..8abb5e040f21a 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -20,6 +20,7 @@ git correctly (running `meson` will run these commands for you automatically): ```shell $ git config submodule.recurse true $ git config fetch.recurseSubmodules on-demand +$ git config push.recurseSubmodules no ``` When adding new functionality, tests should be added. For shared functionality diff --git a/tools/git-setup.sh b/tools/git-setup.sh index 2f7be5ccd693f..4b49ab9c45f9d 100755 --- a/tools/git-setup.sh +++ b/tools/git-setup.sh @@ -7,6 +7,7 @@ cd "${MESON_SOURCE_ROOT:?}" if [ -e .git ]; then git config submodule.recurse true git config fetch.recurseSubmodules on-demand + git config push.recurseSubmodules no fi if [ ! -f .git/hooks/pre-commit.sample ] || [ -f .git/hooks/pre-commit ]; then