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
Boxiang Sun
gitlab-ce
Commits
3b49a794
Commit
3b49a794
authored
Nov 23, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent loading from cache if commit is nil
parent
5f11daf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/gitlab/cache/ci/project_pipeline_status.rb
lib/gitlab/cache/ci/project_pipeline_status.rb
+1
-2
No files found.
lib/gitlab/cache/ci/project_pipeline_status.rb
View file @
3b49a794
...
@@ -47,6 +47,7 @@ module Gitlab
...
@@ -47,6 +47,7 @@ module Gitlab
def
load_status
def
load_status
return
if
loaded?
return
if
loaded?
return
unless
commit
if
has_cache?
if
has_cache?
load_from_cache
load_from_cache
...
@@ -59,8 +60,6 @@ module Gitlab
...
@@ -59,8 +60,6 @@ module Gitlab
end
end
def
load_from_project
def
load_from_project
return
unless
commit
self
.
sha
,
self
.
status
,
self
.
ref
=
commit
.
sha
,
commit
.
status
,
project
.
default_branch
self
.
sha
,
self
.
status
,
self
.
ref
=
commit
.
sha
,
commit
.
status
,
project
.
default_branch
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