From 4151346853bc69761a3ea95c844198e6e6671345 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 05 2020 15:49:44 +0000 Subject: Specify a git user and email in the clone This way, when running in openshift git will know what to use to do the commits and it won't break at this step. Signed-off-by: Pierre-Yves Chibon --- diff --git a/utils.py b/utils.py index 13645e5..7fc042c 100644 --- a/utils.py +++ b/utils.py @@ -53,6 +53,15 @@ class MonitoringUtils: self.print_user(info_log) try: run_command([command, "clone", f"{namespace}/{name}"], cwd=folder) + clone_folder = os.path.join(folder, name) + run_command( + ["git", "config", "user.name", "packagerbot"], + cwd=clone_folder, + ) + run_command( + ["git", "config", "user.email", "admin@fedoraproject.org"], + cwd=clone_folder, + ) self.print_user(info_log, success=True) except MonitoringException: self.print_user(info_log, success=False)