Commit d5beada7 authored by Wieland Hoffmann's avatar Wieland Hoffmann Committed by Lukas Fleischer
Browse files

git-serve: Use `pkgbase` for errors about invalid names

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

> Traceback (most recent call last):
>   File "/srv/http/vhosts/", line 138, in <module>
>     die('%s: invalid repository name: %s' % (action, repo))
> NameError: name 'repo' is not defined

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 608d4aaf
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment