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