From 7d83309eb43873a3075f436343d8465f0393195b Mon Sep 17 00:00:00 2001 From: Pranay Singh <73547201+i5pranay93@users.noreply.github.com> Date: Thu, 9 Jun 2022 12:35:07 +0530 Subject: [PATCH] changing git protocal with https (#45) * changing protocol from git to https * updating comments from git to https protocol Signed-off-by: Pranay Singh --- lib/cookbook-omnifetch.rb | 2 +- lib/cookbook-omnifetch/github.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cookbook-omnifetch.rb b/lib/cookbook-omnifetch.rb index 95e0ef6..1e992f7 100644 --- a/lib/cookbook-omnifetch.rb +++ b/lib/cookbook-omnifetch.rb @@ -20,7 +20,7 @@ module CookbookOmnifetch # is returned. # # @example Create a git location - # Location.init(dependency, git: 'git://github.com/berkshelf/berkshelf.git') + # Location.init(dependency, git: 'https://github.com/berkshelf/berkshelf.git') # # @example Create a GitHub location # Location.init(dependency, github: 'berkshelf/berkshelf') diff --git a/lib/cookbook-omnifetch/github.rb b/lib/cookbook-omnifetch/github.rb index f3dadc3..928f453 100644 --- a/lib/cookbook-omnifetch/github.rb +++ b/lib/cookbook-omnifetch/github.rb @@ -1,7 +1,7 @@ module CookbookOmnifetch class GithubLocation < GitLocation def initialize(dependency, options = {}) - options[:git] = "git://github.com/#{options.delete(:github)}.git" + options[:git] = "https://github.com/#{options.delete(:github)}.git" super end end