summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragutong-dev <dev@agtuong.com>2013-04-17 01:19:59 +0800
committeragutong-dev <dev@agutong.com>2013-04-17 01:40:39 +0800
commit2b54f0578fad97620591ee1fcd307777f8836d8c (patch)
treec46b114a3d3a47e6940bb5278089fb354038c9ba
parent047dcb86af85a4f1a56cf34baff036af1aa3c222 (diff)
downloadgitlab-shell-2b54f0578fad97620591ee1fcd307777f8836d8c.tar.gz
bug fix for namespaced project forking
-rw-r--r--lib/gitlab_projects.rb2
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)}"