Commit 31239d116a873bd6110c3995821df66c9720663a
1 parent
467e4e81
Exists in
master
and in
4 other branches
Add additional validation to push event
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/event.rb
@@ -168,7 +168,7 @@ class Event < ActiveRecord::Base | @@ -168,7 +168,7 @@ class Event < ActiveRecord::Base | ||
168 | end | 168 | end |
169 | 169 | ||
170 | def valid_push? | 170 | def valid_push? |
171 | - data[:ref] | 171 | + data[:ref] && ref_name.present? |
172 | rescue => ex | 172 | rescue => ex |
173 | false | 173 | false |
174 | end | 174 | end |