We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6942656 commit 3d93100Copy full SHA for 3d93100
lib/git/objects/util.py
@@ -60,7 +60,7 @@ def get_user_id():
60
""":return: string identifying the currently active system user as name@node
61
:note: user can be set with the 'USER' environment variable, usually set on windows"""
62
ukn = 'UNKNOWN'
63
- username = os.environ.get('USER', ukn)
+ username = os.environ.get('USER', os.environ.get('USERNAME', ukn))
64
if username == ukn and hasattr(os, 'getlogin'):
65
username = os.getlogin()
66
# END get username from login
0 commit comments