From 00bf30ba9f5831e74b6990d4179bd6e4c0ce072a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 27 Oct 2016 12:34:23 +0300 Subject: Use full repository path for API calls instead of extracting name Signed-off-by: Dmitriy Zaporozhets --- lib/names_helper.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/names_helper.rb') diff --git a/lib/names_helper.rb b/lib/names_helper.rb index ec41b79..1f9c56e 100644 --- a/lib/names_helper.rb +++ b/lib/names_helper.rb @@ -1,11 +1,4 @@ module NamesHelper - def extract_repo_name(path) - repo_name = path.strip - repo_name.gsub!(/\.git$/, "") - repo_name.gsub!(/^\//, "") - repo_name.split(File::SEPARATOR).last(2).join(File::SEPARATOR) - end - def extract_ref_name(ref) ref.gsub(/\Arefs\/(tags|heads)\//, '') end -- cgit v1.2.1