Commit dbc471c9 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[SourcesManager] Dont take into account trailing .git when finding repo by URL

See https://github.com/CocoaPods/CocoaPods/issues/2526#issuecomment-56986262
parent bd8e706e
...@@ -381,8 +381,8 @@ module Pod ...@@ -381,8 +381,8 @@ module Pod
# The URL of the source. # The URL of the source.
# #
def source_with_url(url) def source_with_url(url)
url = url.downcase url = url.downcase.gsub(/.git$/, '')
aggregate.sources.find { |s| s.url.downcase == url } aggregate.sources.find { |s| s.url.downcase.gsub(/.git$/, '') == url }
end end
# Returns a suitable repository name for `url`. # Returns a suitable repository name for `url`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment