Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tools: Update source repos in total-contributions.
Tim Abbott8023a646def9
diff --git a/tools/total-contributions b/tools/total-contributionsindex 356b54cee5b..1235e571c60 100755--- a/tools/total-contributions+++ b/tools/total-contributions@@ -171,7 +171,13 @@ for (full_repository, branch) in []:repository = os.path.basename(full_repository)- if not os.path.exists(find_path(repository)):+ if os.path.exists(find_path(repository)):+ # Update the checkout for the project in question.+ subprocess.check_call(+ ["git", "pull", "--rebase", "-q"],+ cwd=find_path(repository),+ )+ else:subprocess.check_call(["git", "clone", f"[email protected]:{full_repository}.git"],cwd=os.path.dirname(find_path(repository)),