Commit c610f2da5504be78762e2f8a94009d951c19dd7d

Authored by Dmitriy Zaporozhets
1 parent 19f505a7

fix gollum git instructions. related to #3562

app/models/gollum_wiki.rb
@@ -16,6 +16,10 @@ class GollumWiki @@ -16,6 +16,10 @@ class GollumWiki
16 @user = user 16 @user = user
17 end 17 end
18 18
  19 + def path
  20 + @project.path + '.wiki'
  21 + end
  22 +
19 def path_with_namespace 23 def path_with_namespace
20 @project.path_with_namespace + ".wiki" 24 @project.path_with_namespace + ".wiki"
21 end 25 end
app/views/wikis/git_access.html.haml
@@ -24,8 +24,8 @@ @@ -24,8 +24,8 @@
24 %legend Clone Your Wiki: 24 %legend Clone Your Wiki:
25 %pre.dark 25 %pre.dark
26 :preserve 26 :preserve
27 - git clone #{@gollum_wiki.path_with_namespace}.git  
28 - cd #{@gollum_wiki.path_with_namespace} 27 + git clone #{@gollum_wiki.ssh_url_to_repo}
  28 + cd #{@gollum_wiki.path}
29 29
30 %legend Start Gollum And Edit Locally: 30 %legend Start Gollum And Edit Locally:
31 %pre.dark 31 %pre.dark