lib/travis/cli/cache.rb in travis-1.6.4.travis.406.4 vs lib/travis/cli/cache.rb in travis-1.6.4.travis.410.4
- old
+ new
@@ -8,10 +8,10 @@
on '-b', '--branch BRANCH', 'only list/delete caches on given branch'
on '-m', '--match STRING', 'only list/delete caches where slug matches given string'
on '-f', '--force', 'do not ask user to confirm deleting the caches'
def run
- error "not allowed to access caches for #{color(repository.slug, :bold)}" unless repository.member?
+ error "not allowed to access caches for #{color(repository.slug, :bold)}" unless repository.push?
branches = caches.group_by(&:branch)
check_caches
warn "Deleted the following caches:\n" if delete?
branches.each { |name, list| display_branch(name, list) }