summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-10-25 10:35:07 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-10-25 10:35:07 +0200
commit199029b842de7c9d52b5c95bdc1cc897da8e5560 (patch)
tree5115185d3732c2bf06f64e7ba382a05ada3f7777 /lib/tasks
parentf6bed511cd7b45726ba50ec0b2e934bd590b0b76 (diff)
parent9be12dd9ca171a4665e0efe4d26d44366302fc43 (diff)
downloadgitlab-ce-199029b842de7c9d52b5c95bdc1cc897da8e5560.tar.gz
Merge pull request #8158 from cirosantilli/basename-dirname-split
Merge File basename and direname into split
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/import.rake3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake
index e0297023bfc..3c693546c09 100644
--- a/lib/tasks/gitlab/import.rake
+++ b/lib/tasks/gitlab/import.rake
@@ -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