in lib/between_meals/repo/git.rb [27:44]
def setup
if File.exist?(File.expand_path(@repo_path))
begin
@repo = Rugged::Repository.new(File.expand_path(@repo_path))
rescue StandardError
@repo = nil
end
else
@repo = nil
end
@bin = 'git'
@cmd = BetweenMeals::Repo::Git::Cmd.new(
:bin => @bin,
:cwd => @repo_path,
:logger => @logger,
)
end