[lxc-devel] [lxd/master] shallow clone for deps
sjemens on Github
lxc-bot at linuxcontainers.org
Tue Aug 14 15:14:08 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 487 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180814/c2001acb/attachment.bin>
-------------- next part --------------
From f0ed48d5fc24c59ae78a2c3c3a1fbc993b857fac Mon Sep 17 00:00:00 2001
From: Asterios Dimitriou <asterios at pci.gr>
Date: Tue, 14 Aug 2018 14:53:10 +0000
Subject: [PATCH] shallow clone for deps
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 25cf33543..71d39138d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ deps:
cd "$(GOPATH)/deps/sqlite"; \
git pull; \
else \
- git clone "https://github.com/CanonicalLtd/sqlite" "$(GOPATH)/deps/sqlite"; \
+ git clone --depth=1 "https://github.com/CanonicalLtd/sqlite" "$(GOPATH)/deps/sqlite"; \
fi
cd "$(GOPATH)/deps/sqlite" && \
@@ -46,7 +46,7 @@ deps:
cd "$(GOPATH)/deps/dqlite"; \
git pull; \
else \
- git clone "https://github.com/CanonicalLtd/dqlite" "$(GOPATH)/deps/dqlite"; \
+ git clone --depth=1 "https://github.com/CanonicalLtd/dqlite" "$(GOPATH)/deps/dqlite"; \
fi
cd "$(GOPATH)/deps/dqlite" && \
More information about the lxc-devel
mailing list