Commit 199029b8 authored by Robert Schilling's avatar Robert Schilling

Merge pull request #8158 from cirosantilli/basename-dirname-split

Merge File basename and direname into split
parents f6bed511 9be12dd9
......@@ -20,8 +20,7 @@ namespace :gitlab do
repo_path[0..git_base_path.length] = ''
path = repo_path.sub(/\.git$/, '')
name = File.basename path
group_name = File.dirname path
group_name, name = File.split(path)
group_name = nil if group_name == '.'
puts "Processing #{repo_path}".yellow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment