@csrf_exempt
def update_subproject(request, project, subproject):
 if (not appsettings.ENABLE_HOOKS):
  return HttpResponseNotAllowed([])
 obj = get_subproject(request, project, subproject, True)
 if (not obj.project.enable_hooks):
  return HttpResponseNotAllowed([])
 perform_update(obj)
 return hook_response()

@ csrf_exempt def update_subproject ( request , project , subproject ) : if ( not appsettings . ENABLE_HOOKS ) : return HttpResponseNotAllowed ( [ ] ) obj = get_subproject ( request , project , subproject , True ) if ( not obj . project . enable_hooks ) : return HttpResponseNotAllowed ( [ ] ) perform_update ( obj ) return hook_response ( )
api hook for updating git repos .