share: shallow clone bdwgc for Android and iOS
[nit.git] / share / android-bdwgc / setup.sh
index fcfbab3..7ea0c27 100755 (executable)
@@ -20,9 +20,9 @@ cd "`dirname "${BASH_SOURCE[0]}"`"
 
 # Download or redownload
 rm -rf bdwgc
-git clone -b android https://github.com/xymus/bdwgc.git || exit 1
+git clone --depth=1 -b android https://github.com/xymus/bdwgc.git || exit 1
 
 # Setup libatomic_ops too
 cd bdwgc || exit 1
 git submodule init || exit 1
-git submodule update || exit 1
+git submodule update --depth=1 || exit 1