libretro: pass explicit parameters to update_cores.py script

Hope this fixes the issue where sometimes the script calculates the
wrong hash (happening specially in `mame` core).
This commit is contained in:
Thiago Kenji Okada 2022-04-24 02:27:49 +01:00
parent 09d7048059
commit aff4beb95e

View File

@ -107,10 +107,16 @@ def get_repo_hash_fetchFromGitHub(
extra_args = []
if deep_clone:
extra_args.append("--deep-clone")
else:
extra_args.append("--no-deep-clone")
if fetch_submodules:
extra_args.append("--fetch-submodules")
else:
extra_args.append("--no-fetch-submodules")
if leave_dot_git:
extra_args.append("--leave-dot-git")
else:
extra_args.append("--no-leave-dot-git")
if rev:
extra_args.append("--rev")
extra_args.append(rev)