mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 11:46:22 +00:00
deprecar un atributo que nunca usamos
This commit is contained in:
parent
8fc054a735
commit
6e9b09e19b
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue