diff --git a/lib/homesick.rb b/lib/homesick.rb index 10f8e31..15d1764 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -34,7 +34,7 @@ class Homesick < Thor ln_s uri, destination elsif uri =~ GITHUB_NAME_REPO_PATTERN destination = Pathname.new($1) - git_clone "git://github.com/#{$1}.git", :destination => destination + git_clone "https://github.com/#{$1}.git", :destination => destination elsif uri =~ /%r([^%r]*?)(\.git)?\Z/ destination = Pathname.new($1) git_clone uri diff --git a/spec/homesick_spec.rb b/spec/homesick_spec.rb index b5738a9..5b9117a 100644 --- a/spec/homesick_spec.rb +++ b/spec/homesick_spec.rb @@ -78,7 +78,7 @@ describe 'homesick' do end it 'should clone a github repo' do - homesick.should_receive(:git_clone).with('git://github.com/wfarr/dotfiles.git', :destination => Pathname.new('wfarr/dotfiles')) + homesick.should_receive(:git_clone).with('https://github.com/wfarr/dotfiles.git', :destination => Pathname.new('wfarr/dotfiles')) homesick.clone 'wfarr/dotfiles' end