With https pushing, we need to use the USER env var

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-08-02 17:03:15 +00:00
parent f54ed0f35d
commit 7148f95bf8

View file

@ -80,6 +80,13 @@ def build_stats(commit):
seen = []
def getlogin():
try:
return os.getlogin()
except:
return os.environ['USER']
# Read in all the rev information git-receive-pack hands us.
lines = [line.split() for line in sys.stdin.readlines()]
for line in lines: