Commit 39c44229 authored by Michal Čihař's avatar Michal Čihař

Pass real request object

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ec938c30
...@@ -107,7 +107,7 @@ def commit_subproject(request, project, subproject): ...@@ -107,7 +107,7 @@ def commit_subproject(request, project, subproject):
obj = get_subproject(request, project, subproject, True) obj = get_subproject(request, project, subproject, True)
if not obj.project.enable_hooks: if not obj.project.enable_hooks:
return HttpResponseNotAllowed([]) return HttpResponseNotAllowed([])
obj.commit_pending(None) obj.commit_pending(request)
return hook_response('Commit performed') return hook_response('Commit performed')
...@@ -121,7 +121,7 @@ def commit_project(request, project): ...@@ -121,7 +121,7 @@ def commit_project(request, project):
obj = get_project(request, project, True) obj = get_project(request, project, True)
if not obj.enable_hooks: if not obj.enable_hooks:
return HttpResponseNotAllowed([]) return HttpResponseNotAllowed([])
obj.commit_pending(None) obj.commit_pending(request)
return hook_response('Commit performed') return hook_response('Commit performed')
......
Markdown is supported
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