From 8be582a4cbbf4de4ab87153f3f6473cf62596548 Mon Sep 17 00:00:00 2001 From: Joshua Nichols Date: Thu, 18 Mar 2010 23:45:34 -0400 Subject: [PATCH] Fixed cloning from github. --- lib/homesick.rb | 2 +- lib/homesick/actions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/homesick.rb b/lib/homesick.rb index 04abfa3..7e453ee 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -21,7 +21,7 @@ class Homesick < Thor empty_directory repos_dir, :verbose => false inside repos_dir do if uri =~ GITHUB_NAME_REPO_PATTERN - git_clone "git://github.com/#{$1}/#{$2}.git", "#{$1}_#{$2}" + git_clone "git://github.com/#{$1}/#{$2}.git", :destination => "#{$1}_#{$2}" else git_clone uri end diff --git a/lib/homesick/actions.rb b/lib/homesick/actions.rb index ac2e385..2e1203e 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -12,7 +12,7 @@ class Homesick if ! destination.directory? say_status 'git clone', "#{repo} to #{destination.expand_path}", :green if config.fetch(:verbose, true) - system "git clone #{repo} #{destination}" unless options[:pretend] + system "git clone -q #{repo} #{destination}" unless options[:pretend] else say_status :exist, destination.expand_path, :blue end