From 54bf7351e9ce665be94ba033cf4e8c7cdabb59fe Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 26 Oct 2021 11:34:47 +0200 Subject: [PATCH] Makefile: Speed up git clone by using --branch and --depth=1 arguments --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0176f7f5c..ddb54d322 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,7 @@ shasum: shasum -a 256 roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)-complete.tar.gz roundcube-framework-$(VERSION).tar.gz roundcubemail-git: buildtools - git clone $(GITREMOTE) roundcubemail-git - (cd roundcubemail-git; git checkout $(GITBRANCH)) + git clone --branch=$(GITBRANCH) --depth=1 $(GITREMOTE) roundcubemail-git (cd roundcubemail-git; bin/jsshrink.sh; bin/updatecss.sh; bin/cssshrink.sh) (cd roundcubemail-git/skins/elastic; \ lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css; \