diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-10-25 12:35:07 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-10-25 12:35:07 +0400 |
commit | 199029b842de7c9d52b5c95bdc1cc897da8e5560 (patch) | |
tree | 5115185d3732c2bf06f64e7ba382a05ada3f7777 /lib/tasks/gitlab/import.rake | |
parent | f6bed511cd7b45726ba50ec0b2e934bd590b0b76 (diff) | |
parent | 9be12dd9ca171a4665e0efe4d26d44366302fc43 (diff) |
Merge pull request #8158 from cirosantilli/basename-dirname-split
Merge File basename and direname into split
Diffstat (limited to 'lib/tasks/gitlab/import.rake')
-rw-r--r-- | lib/tasks/gitlab/import.rake | 3 |
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 |