You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible explanation might be that since apache/mod_wsgi are not started by a login shell, no call to setlogin() has been made (in order for getlogin() to succeed a previous call to setlogin() must have been made). Perhaps the problem is in mod_wsgi running in daemon mode. Either way, a more robust get_user_id() function would be nice.
Using gitpython from within a mod_wsgi web app results in the following exception when trying to commit:
A possible explanation might be that since apache/mod_wsgi are not started by a login shell, no call to
setlogin()has been made (in order forgetlogin()to succeed a previous call tosetlogin()must have been made). Perhaps the problem is in mod_wsgi running in daemon mode. Either way, a more robustget_user_id()function would be nice.A non-portable solution:
These could also be helpful:
http://defect.opensolaris.org/bz/show_bug.cgi?id=3595
http://www.agmweb.ca/blog/andy/2172/ (comment by Graham Dumpleton)