#96: hotfix
This commit is contained in:
parent
73bb177764
commit
cb00f301ba
|
@ -8,8 +8,8 @@ module GitHelper
|
||||||
url = node.url(treeish).gsub(/.git$/, '')
|
url = node.url(treeish).gsub(/.git$/, '')
|
||||||
if url =~ /^git:/
|
if url =~ /^git:/
|
||||||
url.gsub!(/^git/, 'http')
|
url.gsub!(/^git/, 'http')
|
||||||
else
|
elsif str = /git@.*:.*/.match(url)
|
||||||
str = /git@.*:.*/.match(url)[0].gsub(/^git@/, '')
|
str = str[0].gsub(/^git@/, '')
|
||||||
domen = str.gsub(/:.*/, '')
|
domen = str.gsub(/:.*/, '')
|
||||||
owner = str.gsub(/^#{domen}:/, '').gsub(/\/.*/, '')
|
owner = str.gsub(/^#{domen}:/, '').gsub(/\/.*/, '')
|
||||||
project = str.gsub(/.*\//, '')
|
project = str.gsub(/.*\//, '')
|
||||||
|
|
Loading…
Reference in New Issue