lib/open_project/gitolite/gitolite_wrapper/repositories_helper.rb
def handle_repository_delete(repos)
      @admin.transaction do
        repos.each do |repo|
          if @gitolite_config.repos[repo[:name]]

            # Delete from in-memory gitolite
            @gitolite_config.rm_repo(repo[:name])

            # Commit changes
            gitolite_admin_repo_commit(repo[:name])

            # Delete physical repo
            clean_repo_dir(repo[:relative_path])
          else
            logger.warn("#{@action} : '#{repo[:name]}' does not exist in Gitolite")
          end
        end
      end
    end
# Delete the reposistory from gitolite-admin (and commit)
# and yield (e.g., for deletion / moving to trash before commit)
#
Delete the reposistory from gitolite-admin (and commit)
and yield
Delete the reposistory from gitolite - admin ( and commit ) and yield
def handle_repository_delete(repos)
      @admin.transaction do
        repos.each do |repo|
          if @gitolite_config.repos[repo[:name]]
            @gitolite_config.rm_repo(repo[:name])
            gitolite_admin_repo_commit(repo[:name])
            clean_repo_dir(repo[:relative_path])
          else
            logger.warn("#{@action} : '#{repo[:name]}' does not exist in Gitolite")
          end
        end
      end
    end
def handle_repository_delete ( repos ) @admin . transaction do repos . each do | repo | if @gitolite_config . repos [ repo [ :name ] ] @gitolite_config . rm_repo ( repo [ :name ] ) gitolite_admin_repo_commit ( repo [ :name ] ) clean_repo_dir ( repo [ :relative_path ] ) else logger . warn ( "#{@action} : '#{repo[:name]}' does not exist in Gitolite" ) end end end end
Delete the reposistory from gitolite-admin (and commit)
and yield (e.g., for deletion / moving to trash before commit)
Delete the reposistory from gitolite - admin ( and commit ) and yield ( e . g . for deletion / moving to trash before commit )
# Delete from in-memory gitolite # Commit changes # Delete physical repo
repos