git-update: Use AUR_PRIVILEGED for forced pushes
commit87f5f1b407fee29412c761e6f1484f51fae86eda
authorLukas Fleischer <lfleischer@archlinux.org>
Tue, 2 Aug 2016 21:21:06 +0000 (2 23:21 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 4 Aug 2016 23:22:52 +0000 (5 01:22 +0200)
tree6152d38f115e6b588532eebb969389a63910199b
parent7a53ded5fea71cc89d0530d5c087e452e89c9d3f
git-update: Use AUR_PRIVILEGED for forced pushes

Instead of looking up the account type of the current user again, use
the AUR_PRIVILEGED environment variable to check whether the user is
allowed to perform non-fast-forward ref updates.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/git-update.py