Commit 48cd0c49 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'zj-wiki-find-file-main' into 'master'

Wiki: #find_file defaults to HEAD over master

See merge request gitlab-org/gitlab!56354
parents b20afc7f 5e4e3660
...@@ -159,7 +159,7 @@ class Wiki ...@@ -159,7 +159,7 @@ class Wiki
find_page(SIDEBAR, version) find_page(SIDEBAR, version)
end end
def find_file(name, version = nil) def find_file(name, version = 'HEAD')
wiki.file(name, version) wiki.file(name, version)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment