Fixed cloning from github.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user