git-serve: Use `pkgbase` for errors about invalid names
commitd5beada7c36529dd5f1ef500e2bbb4dcdcc0336a
authorWieland Hoffmann <themineo@gmail.com>
Mon, 8 Jun 2015 09:49:38 +0000 (8 11:49 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Mon, 8 Jun 2015 10:43:58 +0000 (8 12:43 +0200)
tree08f9ade064f5ab14e2bb919b4fa5d015ebd830ea
parent608d4aaf574a9fc0f9580bf500708ca7d285124b
git-serve: Use `pkgbase` for errors about invalid names

`repo` is not defined at the point it's used, so you would get errors
like

> Traceback (most recent call last):
>   File "/srv/http/vhosts/aur-dev.archlinux.org/public/git-interface/git-serve.py", line 138, in <module>
>     die('%s: invalid repository name: %s' % (action, repo))
> NameError: name 'repo' is not defined

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