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
dc112f09
Commit
dc112f09
authored
Feb 26, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: fix after review
parent
1d209416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
app/workers/post_receive.rb
app/workers/post_receive.rb
+9
-9
No files found.
app/workers/post_receive.rb
View file @
dc112f09
...
@@ -15,15 +15,7 @@ class PostReceive
...
@@ -15,15 +15,7 @@ class PostReceive
repo_path
.
gsub!
(
/\A\//
,
""
)
repo_path
.
gsub!
(
/\A\//
,
""
)
if
repo_path
=~
/wiki\z/
&&
Gitlab
.
config
.
elasticsearch
.
enabled
if
repo_path
=~
/wiki\z/
&&
Gitlab
.
config
.
elasticsearch
.
enabled
repo_path
.
gsub!
(
/\.wiki\z/
,
""
)
update_wiki_es_indexes
(
repo_path
)
project
=
Project
.
find_with_namespace
(
repo_path
)
if
project
project
.
wiki
.
index_blobs
end
return
false
end
end
project
=
Project
.
find_with_namespace
(
repo_path
)
project
=
Project
.
find_with_namespace
(
repo_path
)
...
@@ -71,4 +63,12 @@ class PostReceive
...
@@ -71,4 +63,12 @@ class PostReceive
def
log
(
message
)
def
log
(
message
)
Gitlab
::
GitLogger
.
error
(
"POST-RECEIVE:
#{
message
}
"
)
Gitlab
::
GitLogger
.
error
(
"POST-RECEIVE:
#{
message
}
"
)
end
end
def
update_wiki_es_indexes
(
repo_path
)
project
=
Project
.
find_with_namespace
(
repo_path
.
gsub
(
/\.wiki\z/
,
""
))
if
project
project
.
wiki
.
index_blobs
end
end
end
end
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