From 5fcf8ce484ac4011f58385d767c08668433f0f73 Mon Sep 17 00:00:00 2001 From: unman Date: Thu, 20 Feb 2020 16:05:11 +0000 Subject: [PATCH] Source Code - update instructions on downloading repositories --- developer/code/source-code.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/developer/code/source-code.md b/developer/code/source-code.md index 1fe555d6..6f1f531b 100644 --- a/developer/code/source-code.md +++ b/developer/code/source-code.md @@ -35,13 +35,17 @@ e.g.: git clone https://github.com/QubesOS/qubes-core-admin.git core-admin ~~~ -To clone **all** of our repositories in a single command: +To build Qubes you do not need to download all these repositories. +If you use [qubes builder] you can specify *what* you want to build, and download only the repositories needed to build that target. + +If you really do want to clone **all** of the repositories, you can use these commands: ~~~ curl "https://api.github.com/orgs/QubesOS/repos?page=1&per_page=100" | grep -e 'clone_url*' | cut -d \" -f 4 | xargs -L1 git clone +curl "https://api.github.com/orgs/QubesOS/repos?page=2&per_page=100" | grep -e 'clone_url*' | cut -d \" -f 4 | xargs -L1 git clone ~~~ -To update (git fetch) **all** of these repositories in a single command: +To update (git fetch) **all** of these repositories : ~~~ find . -mindepth 1 -maxdepth 1 -type d -exec git -C {} fetch --tags --recurse-submodules=on-demand --all \; @@ -85,4 +89,4 @@ method you choose, you must [sign your code] before it can be accepted. [sign your code]: /doc/code-signing/ [fork & pull requests]: https://guides.github.com/activities/forking/ [qubes-devel mailing list]: /support/#qubes-devel - +[qubes builder]: /doc/QubesBuilder/