mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #92 from YunoHost/shallow-clone
[enh] Create shallow clone to increase app installation time
This commit is contained in:
commit
3bbe9ad7e2
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ def _fetch_app_from_git(app):
|
|||
if os.system('wget "%s" -O "%s.zip" > /dev/null 2>&1' % (url, app_tmp_folder)) == 0:
|
||||
return _extract_app_from_file(app_tmp_folder +'.zip', remove=True)
|
||||
|
||||
git_result = os.system('git clone %s %s' % (app, app_tmp_folder))
|
||||
git_result = os.system('git clone --depth=1 %s %s' % (app, app_tmp_folder))
|
||||
git_result_2 = 0
|
||||
try:
|
||||
with open(app_tmp_folder + '/manifest.json') as json_manifest:
|
||||
|
|
Loading…
Add table
Reference in a new issue