summaryrefslogtreecommitdiffstats
path: root/git-interface
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2015-06-08 11:49:38 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-08 12:43:58 +0200
commitd5beada7c36529dd5f1ef500e2bbb4dcdcc0336a (patch)
tree08f9ade064f5ab14e2bb919b4fa5d015ebd830ea /git-interface
parent608d4aaf574a9fc0f9580bf500708ca7d285124b (diff)
downloadaur-d5beada7c36529dd5f1ef500e2bbb4dcdcc0336a.tar.gz
aur-d5beada7c36529dd5f1ef500e2bbb4dcdcc0336a.tar.xz
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>
Diffstat (limited to 'git-interface')
-rwxr-xr-xgit-interface/git-serve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py
index 5aa44c30..cfd3e340 100755
--- a/git-interface/git-serve.py
+++ b/git-interface/git-serve.py
@@ -135,7 +135,7 @@ if action == 'git-upload-pack' or action == 'git-receive-pack':
die('%s: invalid path: %s' % (action, path))
pkgbase = path[1:-4]
if not re.match(repo_regex, pkgbase):
- die('%s: invalid repository name: %s' % (action, repo))
+ die('%s: invalid repository name: %s' % (action, pkgbase))
if not pkgbase_exists(pkgbase):
create_pkgbase(pkgbase, user)