summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-07-15 21:31:26 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-07-15 21:31:26 -0400
commite94d3834c7d32f6e8a1d3d4c32d8be8cb1d7810c (patch)
tree175d064b34d9639c3990ea3b9334f39b2b6101e3 /lib
parent4f25e3178b2eaa71f312e80ca183358b350c97d6 (diff)
downloadgitlab-ce-e94d3834c7d32f6e8a1d3d4c32d8be8cb1d7810c.tar.gz
Fix a bug where the project's repository path was returned instead of the wiki path19842-cloning-a-gitlab-wiki-returns-the-repo-not-the-repo-s-wiki
Diffstat (limited to 'lib')
-rw-r--r--lib/api/internal.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index d5dfba5e0cc..959b700de78 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -63,7 +63,12 @@ module API
if access_status.status
# Return the repository full path so that gitlab-shell has it when
# handling ssh commands
- response[:repository_path] = project.repository.path_to_repo
+ response[:repository_path] =
+ if wiki?
+ project.wiki.repository.path_to_repo
+ else
+ project.repository.path_to_repo
+ end
end
response