lib/hu/deploy.rb in hu-2.0.5 vs lib/hu/deploy.rb in hu-2.0.6

- old
+ new

@@ -579,10 +579,15 @@ end def ci_status(release_branch_exists=true) okit = Octokit::Client.new(access_token: ENV['HU_GITHUB_ACCESS_TOKEN']) - repo_name = @git.remotes['origin'].url.split(':')[1].gsub('.git', '') + origin_url = @git.remotes['origin'].url + if origin_url.downcase.start_with? 'http' + repo_name = origin_url.split('/')[3..-1].join('/').gsub('.git', '') + else + repo_name = origin_url.split(':')[1].gsub('.git', '') + end begin raw_status_develop = status_develop = okit.status(repo_name, @git.branches["origin/develop"].target_id) status_develop = status_develop[:statuses].empty? ? ' ' : status_develop[:state] status_develop = ' ' if @git.branches["origin/develop"].target_id != @git.branches["develop"].target_id