diff --git a/lib/gollum/markup.rb b/lib/gollum/markup.rb index 1df5df15..af48fba5 100644 --- a/lib/gollum/markup.rb +++ b/lib/gollum/markup.rb @@ -470,7 +470,7 @@ module Gollum # Use empty string if $2 is nil. uri = $2 || '' # Detect local file. - if uri[0..6] != 'github/' + if uri[0..6] != 'gollum/' if file = self.find_file(uri, @wiki.ref) contents = file.raw_data else diff --git a/test/test_gitcode.rb b/test/test_gitcode.rb index 0c52e401..9d72769b 100644 --- a/test/test_gitcode.rb +++ b/test/test_gitcode.rb @@ -18,7 +18,7 @@ context "gitcode" do @wiki, @path, @cleanup = WikiFactory.create 'examples/test.git' # given - p = page_with_content "a\n\n```html:github/gollum/master/test/file_view/1_file.txt```\n\nb" + p = page_with_content "a\n\n```html:gollum/gollum/master/test/file_view/1_file.txt```\n\nb" # when rendering the page @rendered = Gollum::Markup.new(p).render @@ -29,7 +29,7 @@ context "gitcode" do end test 'contents' do - g = Gollum::Gitcode.new 'github/gollum/master/test/file_view/1_file.txt' + g = Gollum::Gitcode.new 'gollum/gollum/master/test/file_view/1_file.txt' assert_equal g.contents, %{
    \n
  1. \n 0\n
  2. \n
\n} end