diff options
Diffstat (limited to 'lib/names_helper.rb')
-rw-r--r-- | lib/names_helper.rb | 7 |
1 files changed, 0 insertions, 7 deletions
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 |