OSDN Git Service

fix gollum git instructions. related to #3562
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 10 Apr 2013 11:35:44 +0000 (14:35 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 10 Apr 2013 11:35:44 +0000 (14:35 +0300)
app/models/gollum_wiki.rb
app/views/wikis/git_access.html.haml

index 8168347..d1edbab 100644 (file)
@@ -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
index 58c8aa0..462d483 100644 (file)
@@ -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