Skip to content

Commit cd3e731

Browse files
authored
Change: (Makefile) Clone site repos shallowly (#389)
A minor optimization, since the whole repo history isn't needed to serve these sites' latest versions.
1 parent cd0b62a commit cd3e731

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ theme: doc/content/shortcodes.md
4242

4343
scipy:
4444
rm -rf $@
45-
git clone https://github.com/scipy/scipy.org $@
45+
git clone --depth 1 https://github.com/scipy/scipy.org $@
4646
(cd $@ ; hugo --themesDir="../..")
4747

4848
main:
4949
rm -rf $@
50-
git clone https://github.com/scientific-python/scientific-python.org $@
50+
git clone --depth 1 https://github.com/scientific-python/scientific-python.org $@
5151
(cd $@ ; git submodule update --init content/specs)
5252
(cd $@ ; pip install -q -r requirements.txt)
5353
(cd $@ ; hugo --themesDir="../..")
5454

5555
blog:
5656
rm -rf $@
57-
git clone https://github.com/scientific-python/blog.scientific-python.org $@
57+
git clone --depth 1 https://github.com/scientific-python/blog.scientific-python.org $@
5858
(cd $@ ; make prepare ; cp -a themes/hugo-atom-feed ../..)
5959
(cd $@ ; hugo --themesDir="../..")
6060

6161
learn:
6262
rm -rf $@
63-
git clone https://github.com/scientific-python/learn.scientific-python.org $@
63+
git clone --depth 1 https://github.com/scientific-python/learn.scientific-python.org $@
6464
(cd $@ ; hugo --themesDir="../..")

0 commit comments

Comments
 (0)