Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ef4bd293
Commit
ef4bd293
authored
Feb 29, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: fixes after review
parent
7dbcd777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/workers/post_receive.rb
app/workers/post_receive.rb
+3
-3
No files found.
app/workers/post_receive.rb
View file @
ef4bd293
...
@@ -14,9 +14,7 @@ class PostReceive
...
@@ -14,9 +14,7 @@ class PostReceive
repo_path
.
gsub!
(
/\.git\z/
,
""
)
repo_path
.
gsub!
(
/\.git\z/
,
""
)
repo_path
.
gsub!
(
/\A\//
,
""
)
repo_path
.
gsub!
(
/\A\//
,
""
)
if
repo_path
=~
/wiki\z/
&&
Gitlab
.
config
.
elasticsearch
.
enabled
update_wiki_es_indexes
(
repo_path
)
update_wiki_es_indexes
(
repo_path
)
end
project
=
Project
.
find_with_namespace
(
repo_path
)
project
=
Project
.
find_with_namespace
(
repo_path
)
...
@@ -65,6 +63,8 @@ class PostReceive
...
@@ -65,6 +63,8 @@ class PostReceive
end
end
def
update_wiki_es_indexes
(
repo_path
)
def
update_wiki_es_indexes
(
repo_path
)
return
unless
repo_path
=~
/wiki\z/
&&
Gitlab
.
config
.
elasticsearch
.
enabled
project
=
Project
.
find_with_namespace
(
repo_path
.
gsub
(
/\.wiki\z/
,
""
))
project
=
Project
.
find_with_namespace
(
repo_path
.
gsub
(
/\.wiki\z/
,
""
))
if
project
if
project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment