fixes _query_repo so that c['repo'] is actually used