From d70a79ff6c9b5280a9f25f454fc57e6bad068544 Mon Sep 17 00:00:00 2001 From: Klaus Sperner Date: Wed, 26 Apr 2023 19:03:42 +0200 Subject: [PATCH 1/3] Add initial handling of submodules to contribution docs Fixes: #3351 --- docs/contributing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/contributing.md b/docs/contributing.md index b6c46a7b4d..c48a76e68a 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -8,6 +8,8 @@ After [creating your fork on GitHub], you can do: ```shell-session $ git clone git@github.com:your-name/ansible-lint $ cd ansible-lint +$ git submodule init +$ git submodule update $ git checkout -b your-branch-name # DO SOME CODING HERE $ git add your new files From b68e10322bc52268a12bfdb30cac0f7afc50a98d Mon Sep 17 00:00:00 2001 From: Klaus Sperner Date: Thu, 27 Apr 2023 07:53:17 +0200 Subject: [PATCH 2/3] clone submodules during git clone --- docs/contributing.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/contributing.md b/docs/contributing.md index c48a76e68a..1249a04f44 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -6,10 +6,8 @@ fork. After [creating your fork on GitHub], you can do: ```shell-session -$ git clone git@github.com:your-name/ansible-lint +$ git clone --recurse-submodules git@github.com:your-name/ansible-lint $ cd ansible-lint -$ git submodule init -$ git submodule update $ git checkout -b your-branch-name # DO SOME CODING HERE $ git add your new files From d87daf582af7db0e5906811004e3c30f83e5b7f0 Mon Sep 17 00:00:00 2001 From: Klaus Sperner Date: Thu, 27 Apr 2023 09:14:42 +0200 Subject: [PATCH 3/3] use --recursive instead of --recurse-submodules --- docs/contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing.md b/docs/contributing.md index 1249a04f44..3e8e41d50f 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -6,7 +6,7 @@ fork. After [creating your fork on GitHub], you can do: ```shell-session -$ git clone --recurse-submodules git@github.com:your-name/ansible-lint +$ git clone --recursive git@github.com:your-name/ansible-lint $ cd ansible-lint $ git checkout -b your-branch-name # DO SOME CODING HERE