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