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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
525e05b6
Commit
525e05b6
authored
Apr 28, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expire repository exists? and has_visible_content? caches after a push if necessary
Closes #17012
parent
585f5cfa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
CHANGELOG
CHANGELOG
+1
-0
app/services/git_push_service.rb
app/services/git_push_service.rb
+1
-0
app/services/git_tag_push_service.rb
app/services/git_tag_push_service.rb
+1
-0
No files found.
CHANGELOG
View file @
525e05b6
...
@@ -20,6 +20,7 @@ v 8.8.0 (unreleased)
...
@@ -20,6 +20,7 @@ v 8.8.0 (unreleased)
- Improve description for the Two-factor Authentication sign-in screen. (Connor Shea)
- Improve description for the Two-factor Authentication sign-in screen. (Connor Shea)
- API support for the 'since' and 'until' operators on commit requests (Paco Guzman)
- API support for the 'since' and 'until' operators on commit requests (Paco Guzman)
- Fix Gravatar hint in user profile when Gravatar is disabled. !3988 (Artem Sidorenko)
- Fix Gravatar hint in user profile when Gravatar is disabled. !3988 (Artem Sidorenko)
- Expire repository exists? and has_visible_content? caches after a push if necessary
v 8.7.3
v 8.7.3
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
...
...
app/services/git_push_service.rb
View file @
525e05b6
...
@@ -17,6 +17,7 @@ class GitPushService < BaseService
...
@@ -17,6 +17,7 @@ class GitPushService < BaseService
# 6. Checks if the project's main language has changed
# 6. Checks if the project's main language has changed
#
#
def
execute
def
execute
@project
.
repository
.
after_create
if
@project
.
empty_repo?
@project
.
repository
.
after_push_commit
(
branch_name
,
params
[
:newrev
])
@project
.
repository
.
after_push_commit
(
branch_name
,
params
[
:newrev
])
if
push_remove_branch?
if
push_remove_branch?
...
...
app/services/git_tag_push_service.rb
View file @
525e05b6
...
@@ -2,6 +2,7 @@ class GitTagPushService < BaseService
...
@@ -2,6 +2,7 @@ class GitTagPushService < BaseService
attr_accessor
:push_data
attr_accessor
:push_data
def
execute
def
execute
project
.
repository
.
after_create
if
project
.
empty_repo?
project
.
repository
.
before_push_tag
project
.
repository
.
before_push_tag
@push_data
=
build_push_data
@push_data
=
build_push_data
...
...
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