mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 03:53:23 +02:00
build.py: fix run_init
hooks must be installed after the module is cloned. Change-Id: Ie09a87befbfd217b6c1ad404bf3a457e6d413065
This commit is contained in:
parent
e7e59eba63
commit
bd3ee22c83
1 changed files with 3 additions and 3 deletions
6
build.py
6
build.py
|
@ -303,6 +303,9 @@ def run_dependencies(args):
|
|||
|
||||
|
||||
def run_init():
|
||||
subprocess.run(["git", "submodule", "update", "--init"],
|
||||
check=True)
|
||||
|
||||
hooks_directories = ['.git/hooks/', f'.git/modules/daemon/hooks']
|
||||
for hooks_dir in hooks_directories:
|
||||
if not os.path.exists(hooks_dir):
|
||||
|
@ -311,9 +314,6 @@ def run_init():
|
|||
execute_script(['./extras/scripts/format.sh --install %(path)s'],
|
||||
{"path": hooks_dir})
|
||||
|
||||
subprocess.run(["git", "submodule", "update", "--recursive", "--init"],
|
||||
check=True)
|
||||
|
||||
|
||||
def copy_file(src, dest):
|
||||
print(f'Copying: {src} to {dest}')
|
||||
|
|
Loading…
Add table
Reference in a new issue