summaryrefslogtreecommitdiff
path: root/app/contexts
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-14 12:44:54 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-14 12:44:54 +0300
commit13b281c2e4556dc4ad845271d6ae59d5959aff64 (patch)
tree003c477c6c71a4e0757116ac795516300d1d123e /app/contexts
parentb6fdca9c81e617062f86bcd3a1d4d35f058faad1 (diff)
downloadgitlab-ce-13b281c2e4556dc4ad845271d6ae59d5959aff64.tar.gz
Allow project path being passed on project creation
Diffstat (limited to 'app/contexts')
-rw-r--r--app/contexts/projects/create_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/projects/create_context.rb b/app/contexts/projects/create_context.rb
index 4eb4d2cb251..1ee3e459074 100644
--- a/app/contexts/projects/create_context.rb
+++ b/app/contexts/projects/create_context.rb
@@ -26,7 +26,7 @@ module Projects
# Ex.
# 'GitLab HQ'.parameterize => "gitlab-hq"
#
- @project.path = @project.name.dup.parameterize
+ @project.path = @project.name.dup.parameterize unless @project.path.present?
if namespace_id