[sysadmin-bin: 28/168] Properly separate project and branch names



commit 6ae7a16cfd75bce39fc5433ebd27bc037dbf3235
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 2 17:15:13 2009 -0500

    Properly separate project and branch names
    
    Send detail mails with subject prefix
    
     [someproject/spiffy-stuff: x/y]
    
    Not:
     [someprojectspiffy-stuff: x/y]

 gnome-post-receive-email |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index b397667..1af16a6 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -467,9 +467,9 @@ class BranchChange(RefChange):
             mail_process = open_email()
 
             if self.short_refname == 'master':
-                branch = ''
+                branch = ""'
             else:
-                branch = self.short_refname
+                branch = "/" + self.short_refname
 
             subject = "[%(projectshort)s%(branch)s: %(index)s/%(total)s] %(subject)s" % {
                 'projectshort' : projectshort,



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