app/models/repository.rb
def before_delete
    expire_exists_cache

    expire_cache if exists?

    expire_root_ref_cache
    expire_emptiness_caches
    expire_exists_cache
  end
# Runs code just before a repository is deleted.
Runs code just before a repository is deleted.
Runs code just before a repository is deleted .
def before_delete
    expire_exists_cache
    expire_cache if exists?
    expire_root_ref_cache
    expire_emptiness_caches
    expire_exists_cache
  end
def before_delete expire_exists_cache expire_cache if exists? expire_root_ref_cache expire_emptiness_caches expire_exists_cache end
Runs code just before a repository is deleted.
Runs code just before a repository is deleted .