use shallow checkouts by default

This commit is contained in:
j 2016-02-12 13:58:50 +05:30
commit 55a858c410
2 changed files with 5 additions and 5 deletions

6
ctl
View file

@ -157,10 +157,10 @@ if [ "$1" == "ui" ]; then
fi
if [ "$1" == "init" ]; then
if [ ! -e "${BASE}/platform" ]; then
git clone https://git.0x2620.org/openmedialibrary_platform.git "${BASE}/platform"
git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform.git "${BASE}/platform"
fi
if [ ! -e "${PLATFORM_ENV}" ]; then
git clone https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
fi
"$0" update_static
exit
@ -168,7 +168,7 @@ fi
if [ "$1" == "update" ]; then
cd "$BASE/$NAME"
if [ ! -e "${PLATFORM_ENV}" ]; then
git clone https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
fi
if [ -d "$BASE/$NAME/.git" ]; then
OLD=`"$0" version`