Skip to content

Commit

Permalink
README: describe alternative to Scalar-based clones
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Oct 17, 2024
1 parent 1c0aab1 commit b7c5d89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ $ scalar clone https://github.com/git/git-scm.com
$ cd git-scm.com/src
$ git sparse-checkout set layouts content static assets hugo.yml data script

If your Git installation comes without `scalar`, you can create a sparse, partial clone manually, like this:

```ShellSession
$ git clone --filter=blob:none --no-checkout https://github.com/git/git-scm.com
$ cd git-scm.com
$ git sparse-checkout set layouts content static assets hugo.yml data script
$ git reset --hard
```

Here is a detailed list of the relevant directories:

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

0 comments on commit b7c5d89

Please sign in to comment.