lib/sdoc/github.rb in sdoc-0.3.4 vs lib/sdoc/github.rb in sdoc-0.3.5
- old
+ new
@@ -38,10 +38,10 @@
return false unless have_git?
s = Dir.chdir(File.join(basedir, File.dirname(path))) do
`git config --get remote.origin.url`
end
m = s.match(%r{github.com[/:](.*)\.git$})
- m ? "http://github.com/#{m[1]}/blob/" : false
+ m ? "https://github.com/#{m[1]}/blob/" : false
end
def path_relative_to_repository(path)
absolute_path = File.join(basedir, path)
root = path_to_git_dir(File.dirname(absolute_path))