[sysadmin-bin] Pick the correct user value for user_fullname



commit 7ab6f4ab119236fdf51392254568d95fd0591fc4
Author: Andrea Veri <averi redhat com>
Date:   Tue Nov 14 12:16:50 2017 +0100

    Pick the correct user value for user_fullname

 git/gnome-post-receive-email |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/gnome-post-receive-email b/git/gnome-post-receive-email
index 078fd69..6ffd43f 100755
--- a/git/gnome-post-receive-email
+++ b/git/gnome-post-receive-email
@@ -136,10 +136,10 @@ class RefChange(object):
                     if provider not in ('google_oauth2', 'github'):
                         username = 
user.attributes['identities'][index]['extern_uid'].split(',')[0].replace('uid=', '')
 
-                user = username
-
                 global user_fullname
                 user_fullname = user.attributes['name']
+
+                user = username
         else:
             user = os.environ['USER']
 


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