btlog: if git remote is specified, push commits to that remote

This makes fdroid automatically push the new binary transparency commits if
there is a git_remote specified in either config.py or from a CLI arg.
This commit is contained in:
Hans-Christoph Steiner 2017-04-03 20:31:25 +02:00
parent 40290fc5e0
commit 4b7084f779
2 changed files with 18 additions and 4 deletions

View file

@ -1409,7 +1409,7 @@ def main():
index.make(apps, sortedids, archapks, repodirs[1], True)
if config.get('binary_transparency_remote'):
btlog.make_binary_transparency_log(repodirs)
btlog.make_binary_transparency_log(repodirs, git_remote=config['binary_transparency_remote'])
if config['update_stats']:
# Update known apks info...