And use the new getlogin()

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

View file

@ -87,6 +87,7 @@ def 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:
@ -131,7 +132,7 @@ for line in lines:
repo=repo_name,
namespace=namespace,
branch=branch,
agent=os.getlogin(),
agent=getlogin(),
)
commits = map(_build_commit, revs)