And use the new getlogin()
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7148f95bf8
commit
03136b922b
1 changed files with 2 additions and 1 deletions
|
@ -87,6 +87,7 @@ def getlogin():
|
||||||
except:
|
except:
|
||||||
return os.environ['USER']
|
return os.environ['USER']
|
||||||
|
|
||||||
|
|
||||||
# Read in all the rev information git-receive-pack hands us.
|
# Read in all the rev information git-receive-pack hands us.
|
||||||
lines = [line.split() for line in sys.stdin.readlines()]
|
lines = [line.split() for line in sys.stdin.readlines()]
|
||||||
for line in lines:
|
for line in lines:
|
||||||
|
@ -131,7 +132,7 @@ for line in lines:
|
||||||
repo=repo_name,
|
repo=repo_name,
|
||||||
namespace=namespace,
|
namespace=namespace,
|
||||||
branch=branch,
|
branch=branch,
|
||||||
agent=os.getlogin(),
|
agent=getlogin(),
|
||||||
)
|
)
|
||||||
|
|
||||||
commits = map(_build_commit, revs)
|
commits = map(_build_commit, revs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue