Fixed cloning from github.

This commit is contained in:
Joshua Nichols
2010-03-18 23:45:34 -04:00
parent b80b132a7a
commit 8be582a4cb
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class Homesick < Thor
empty_directory repos_dir, :verbose => false empty_directory repos_dir, :verbose => false
inside repos_dir do inside repos_dir do
if uri =~ GITHUB_NAME_REPO_PATTERN 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 else
git_clone uri git_clone uri
end end

View File

@@ -12,7 +12,7 @@ class Homesick
if ! destination.directory? if ! destination.directory?
say_status 'git clone', "#{repo} to #{destination.expand_path}", :green if config.fetch(:verbose, true) 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 else
say_status :exist, destination.expand_path, :blue say_status :exist, destination.expand_path, :blue
end end