Method: Garlic::Repo#check

Defined in:
lib/garlic/repo.rb

#checkObject



70
71
72
73
74
75
76
# File 'lib/garlic/repo.rb', line 70

def check
  if !Repo.path?(path)
    raise "#{name} is missing from #{path}, or is not a git repo"
  elsif url && !same_url?(origin_url)
    raise "#{name}'s url has changed from #{url} to #{origin_url}"
  end
end