summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/gollum_wiki.rb4
-rw-r--r--app/views/wikis/git_access.html.haml4
2 files changed, 6 insertions, 2 deletions
diff --git a/app/models/gollum_wiki.rb b/app/models/gollum_wiki.rb
index 8168347926b..d1edbab4533 100644
--- a/app/models/gollum_wiki.rb
+++ b/app/models/gollum_wiki.rb
@@ -16,6 +16,10 @@ class GollumWiki
@user = user
end
+ def path
+ @project.path + '.wiki'
+ end
+
def path_with_namespace
@project.path_with_namespace + ".wiki"
end
diff --git a/app/views/wikis/git_access.html.haml b/app/views/wikis/git_access.html.haml
index 58c8aa06aca..462d483fd85 100644
--- a/app/views/wikis/git_access.html.haml
+++ b/app/views/wikis/git_access.html.haml
@@ -24,8 +24,8 @@
%legend Clone Your Wiki:
%pre.dark
:preserve
- git clone #{@gollum_wiki.path_with_namespace}.git
- cd #{@gollum_wiki.path_with_namespace}
+ git clone #{@gollum_wiki.ssh_url_to_repo}
+ cd #{@gollum_wiki.path}
%legend Start Gollum And Edit Locally:
%pre.dark