summaryrefslogtreecommitdiff
path: root/lib/names_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-27 12:34:23 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-27 16:57:57 +0300
commit00bf30ba9f5831e74b6990d4179bd6e4c0ce072a (patch)
treee55c08dafc6d0a6100aa1a3bbb49433e77699339 /lib/names_helper.rb
parenteae98b679b775454c630440b93f41dfdc8b1f72d (diff)
downloadgitlab-shell-dz-support-nested-namespaces.tar.gz
Use full repository path for API calls instead of extracting namedz-support-nested-namespaces
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/names_helper.rb')
-rw-r--r--lib/names_helper.rb7
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