Pārlūkot izejas kodu

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 <pingou@pingoured.fr>
Pierre-Yves Chibon 3 gadi atpakaļ
vecāks
revīzija
880947f6a4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pagure/lib/git.py

+ 1 - 1
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)