if op is None:
return
info = user.pwnam(op)
+ if not info.realname:
+ return
os.putenv("GIT_COMMITTER_NAME", info.realname)
os.putenv("GIT_COMMITTER_EMAIL", info.email)
info = user.passwd()
if info is None:
return
+ if not info.realname:
+ return
os.putenv("GIT_AUTHOR_NAME", "%s" % info.realname)
os.putenv("GIT_AUTHOR_EMAIL", "%s" % info.email)