diff options
author | agutong-dev <dev@agtuong.com> | 2013-04-17 01:19:59 +0800 |
---|---|---|
committer | agutong-dev <dev@agutong.com> | 2013-04-17 01:40:39 +0800 |
commit | 2b54f0578fad97620591ee1fcd307777f8836d8c (patch) | |
tree | c46b114a3d3a47e6940bb5278089fb354038c9ba /lib/gitlab_projects.rb | |
parent | 047dcb86af85a4f1a56cf34baff036af1aa3c222 (diff) | |
download | gitlab-shell-2b54f0578fad97620591ee1fcd307777f8836d8c.tar.gz |
bug fix for namespaced project forking
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r-- | lib/gitlab_projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 1c2128e..0b9bb8c 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -94,7 +94,7 @@ class GitlabProjects return false unless File.exists?(namespaced_path) #a project of the same name cannot already be within the destination namespace - full_destination_path = File.join(namespaced_path, project_name) + full_destination_path = File.join(namespaced_path, project_name.split('/')[-1]) return false if File.exists?(full_destination_path) cmd = "cd #{namespaced_path} && git clone --bare #{full_path} && #{create_hooks_to(full_destination_path)}" |