Commit 2b54f057 authored by agutong-dev's avatar agutong-dev Committed by agutong-dev

bug fix for namespaced project forking

parent 047dcb86
...@@ -94,7 +94,7 @@ class GitlabProjects ...@@ -94,7 +94,7 @@ class GitlabProjects
return false unless File.exists?(namespaced_path) return false unless File.exists?(namespaced_path)
#a project of the same name cannot already be within the destination namespace #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) return false if File.exists?(full_destination_path)
cmd = "cd #{namespaced_path} && git clone --bare #{full_path} && #{create_hooks_to(full_destination_path)}" cmd = "cd #{namespaced_path} && git clone --bare #{full_path} && #{create_hooks_to(full_destination_path)}"
......
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