mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Can't reset a shallow clone
This commit is contained in:
parent
00015e4d03
commit
b03f7d7413
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ def _fetch_app_from_git(app):
|
|||
app_tmp_folder = install_tmp +'/'+ app
|
||||
if os.path.exists(app_tmp_folder): shutil.rmtree(app_tmp_folder)
|
||||
|
||||
git_result = os.system('git clone --depth=1 %s -b %s %s' % (app_info['git']['url'], app_info['git']['branch'], app_tmp_folder))
|
||||
git_result = os.system('git clone %s -b %s %s' % (app_info['git']['url'], app_info['git']['branch'], app_tmp_folder))
|
||||
git_result_2 = os.system('cd %s && git reset --hard %s' % (app_tmp_folder, str(app_info['git']['revision'])))
|
||||
|
||||
if not git_result == git_result_2 == 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue