total-contributions: Do a fetch for zulip/zulip as well.

This avoids producing stale output by having a consistent algorithm
for all repositories.
This commit is contained in:
Tim Abbott 2022-03-28 22:25:39 -07:00 committed by Tim Abbott
parent f04fb51ecc
commit 6b5ce3579c
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ except subprocess.CalledProcessError:
sys.exit(0) sys.exit(0)
out_dict: Dict[str, int] = defaultdict(int) out_dict: Dict[str, int] = defaultdict(int)
subprocess.check_call(["git", "fetch"], cwd=find_path("zulip"))
zulip = retrieve_log("zulip", lower_zulip_version, upper_zulip_version) zulip = retrieve_log("zulip", lower_zulip_version, upper_zulip_version)
add_log(out_dict, zulip) add_log(out_dict, zulip)