From 6e9b09e19bca88ecdce1a331f2d7968e5208341c Mon Sep 17 00:00:00 2001 From: f Date: Fri, 16 Apr 2021 10:36:38 -0300 Subject: [PATCH] deprecar un atributo que nunca usamos --- app/models/site/repository.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/site/repository.rb b/app/models/site/repository.rb index a72c64c..d969522 100644 --- a/app/models/site/repository.rb +++ b/app/models/site/repository.rb @@ -6,13 +6,12 @@ class Site # que un sitio tiene un solo origen, que siempre se trabaja con la # rama master, etc. class Repository - attr_reader :rugged, :changes, :path + attr_reader :rugged, :path # @param [String] la ruta del repositorio def initialize(path) @path = path @rugged = Rugged::Repository.new(path) - @changes = 0 end # Obtiene la rama por defecto a partir de la referencia actual @@ -46,7 +45,7 @@ class Site # @return [Integer] def fetch if origin.check_connection :fetch - @changes = rugged.fetch(origin)[:received_objects] + rugged.fetch(origin)[:received_objects] else 0 end