Module: check_mk
Branch: master
Commit: b1044c2364fe1e4e8a5c835075f7b3ddbe40675d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1044c2364fe1e…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Oct 31 10:20:18 2013 +0100
fixed prefix in commit message
---
werk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/werk b/werk
index 2a41b7a..304bc1f 100755
--- a/werk
+++ b/werk
@@ -231,7 +231,9 @@ def git_commit(werk):
title = werk["title"]
for classid, classname, prefix in classes:
if werk["class"] == classid:
- title = prefix + title
+ if prefix:
+ title = "%s %s" % (prefix, title)
+
os.system("git commit -a -m %s" % quote_shell_string(title +
"\n\n" + werk["description"]))
def quote_shell_string(s):