Skip to content

Commit b7c5d89

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 1c0aab1 commit b7c5d89

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
@@ -16,6 +16,15 @@ $ scalar clone https://github.com/git/git-scm.com
1616
$ cd git-scm.com/src
1717
$ git sparse-checkout set layouts content static assets hugo.yml data script
1818

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

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

0 commit comments

Comments
 (0)