[sysadmin-bin] Drop command from error mail



commit 9794db821499b7202049281ddf8dfc7585412666
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Oct 28 15:41:52 2019 +0100

    Drop command from error mail

 git/post-receive-mirror-github | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index 01f3f5c..e66a23d 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -243,10 +243,9 @@ STDERR: {}
                     err = open(err.name, "r")
                     error_msg = """
 Error trying to push repo {}/{}
-Command: {}
 STDOUT: {}
 STDERR: {}
-""".format(organization, repo_name, out.read(), err.read(), command)
+""".format(organization, repo_name, out.read(), err.read())
                     raise Exception(error_msg)
 
 
@@ -268,9 +267,7 @@ STDERR: {}
 Error trying to push repo {}/{}
 STDOUT: {}
 STDERR: {}
-
-Command: {}
-""".format(organization, repo_name, out.read(), err.read(), command)
+""".format(organization, repo_name, out.read(), err.read())
                 raise Exception(error_msg)
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]