# File lib/homesick/actions/git_actions.rb, line 26 def git_clone(repo, config = {}) config ||= {} destination = config[:destination] || File.basename(repo, '.git') destination = Pathname.new(destination) unless destination.is_a?(Pathname) FileUtils.mkdir_p destination.dirname if destination.directory? say_status :exist, destination.expand_path, :blue else say_status 'git clone', "#{repo} to #{destination.expand_path}", :green system "git clone -q --config push.default=upstream --recursive #{repo} #{destination}" end end