From c610f2da5504be78762e2f8a94009d951c19dd7d Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 10 Apr 2013 14:35:44 +0300
Subject: [PATCH] fix gollum git instructions. related to #3562

---
 app/models/gollum_wiki.rb            | 4 ++++
 app/views/wikis/git_access.html.haml | 4 ++--
 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
-- 
GitLab