[git] Migrate git method from Ruby to Python (#178)

The main reason for doing this is to have some common code between scripts, so that it is easier to change the JSON schema globally and normalize a few things (such as release order).

The Ruby code was kept as is so we can quickly roll back if necessary.
This commit is contained in:
Marc Wrobel
2023-11-12 20:33:29 +01:00
committed by GitHub
parent db0f40bfc5
commit 701c2899d5
7 changed files with 96 additions and 209 deletions

View File

@@ -108,7 +108,7 @@ end
def get_releases(product, config, i)
type = get_update_type(config)
if type == 'git'
if type == 'oldgit' # replaced by the git.py script, code kept for now to facilitate rollbacks
dir = get_cache_dir('git', product, config)
fetch_git_releases(dir, config)
return get_releases_from_git(dir, config)