Skip to content

Commit 459cf48

Browse files
committed
README: describe alternative to Scalar-based clones
There might be setups where Scalar is _not_ included in the default installation; Let's provided helpful instructions for those scenarios, too, even if it is unclear how common such setups are. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d90b914 commit 459cf48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ $ scalar clone https://github.com/git/git-scm.com
1515
$ cd git-scm.com/src
1616
$ git sparse-checkout set layouts content static assets hugo.yml data script
1717

18+
If your Git installation comes without `scalar`, you can create a sparse, partial clone manually, like this:
19+
20+
```ShellSession
21+
$ git clone --filter=blob:none --no-checkout https://github.com/git/git-scm.com
22+
$ cd git-scm.com
23+
$ git sparse-checkout set layouts content static assets hugo.yml data script
24+
$ git reset --hard
25+
```
26+
1827
Here is a detailed list of the relevant directories:
1928

2029
- If you want to test any page rendering using Hugo:

0 commit comments

Comments
 (0)