From 880947f6a4b54f9edc54d63bdb17753eb7f0d9a6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 26 2020 09:10:20 +0000 Subject: Include the date in the log of the last mirroring attempt Otherwise, we have the log of the last attempt but we do not know when that attempt was. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/git.py b/pagure/lib/git.py index 9a483a4..90341be 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -3056,7 +3056,7 @@ def mirror_pull_project(session, project, debug=False): try: # Pull - logs = [] + logs = ["Run from: %s" % datetime.datetime.utcnow().isoformat()] logs = _run_command(["clone", "--mirror", remote, "."], logs) logs = _run_command(["remote", "add", "local", lclrepopath], logs)