use shallow checkouts by default
This commit is contained in:
parent
ed02b1772d
commit
55a858c410
2 changed files with 5 additions and 5 deletions
6
ctl
6
ctl
|
@ -157,10 +157,10 @@ if [ "$1" == "ui" ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$1" == "init" ]; then
|
if [ "$1" == "init" ]; then
|
||||||
if [ ! -e "${BASE}/platform" ]; 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
|
fi
|
||||||
if [ ! -e "${PLATFORM_ENV}" ]; then
|
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
|
fi
|
||||||
"$0" update_static
|
"$0" update_static
|
||||||
exit
|
exit
|
||||||
|
@ -168,7 +168,7 @@ fi
|
||||||
if [ "$1" == "update" ]; then
|
if [ "$1" == "update" ]; then
|
||||||
cd "$BASE/$NAME"
|
cd "$BASE/$NAME"
|
||||||
if [ ! -e "${PLATFORM_ENV}" ]; then
|
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
|
fi
|
||||||
if [ -d "$BASE/$NAME/.git" ]; then
|
if [ -d "$BASE/$NAME/.git" ]; then
|
||||||
OLD=`"$0" version`
|
OLD=`"$0" version`
|
||||||
|
|
|
@ -151,14 +151,14 @@ def command_update_static(*args):
|
||||||
if os.path.exists(old_oxjs) and not os.path.exists(oxjs):
|
if os.path.exists(old_oxjs) and not os.path.exists(oxjs):
|
||||||
shutil.move(old_oxjs, oxjs)
|
shutil.move(old_oxjs, oxjs)
|
||||||
if not os.path.exists(oxjs):
|
if not os.path.exists(oxjs):
|
||||||
r('git', 'clone', 'https://git.0x2620.org/oxjs.git', oxjs)
|
r('git', 'clone', '--depth', '1', 'https://git.0x2620.org/oxjs.git', oxjs)
|
||||||
elif os.path.exists(os.path.join(oxjs, '.git')):
|
elif os.path.exists(os.path.join(oxjs, '.git')):
|
||||||
os.system('cd "%s" && git pull' % oxjs)
|
os.system('cd "%s" && git pull' % oxjs)
|
||||||
r('python3', os.path.join(oxjs, 'tools', 'build', 'build.py'), '-nogeo')
|
r('python3', os.path.join(oxjs, 'tools', 'build', 'build.py'), '-nogeo')
|
||||||
utils.update_static()
|
utils.update_static()
|
||||||
reader = os.path.join(settings.base_dir, '..', 'reader')
|
reader = os.path.join(settings.base_dir, '..', 'reader')
|
||||||
if not os.path.exists(reader):
|
if not os.path.exists(reader):
|
||||||
r('git', 'clone', 'https://git.0x2620.org/openmedialibrary_reader.git', reader)
|
r('git', 'clone', '--depth', '1', 'https://git.0x2620.org/openmedialibrary_reader.git', reader)
|
||||||
elif os.path.exists(os.path.join(reader, '.git')):
|
elif os.path.exists(os.path.join(reader, '.git')):
|
||||||
os.system('cd "%s" && git pull' % reader)
|
os.system('cd "%s" && git pull' % reader)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue