summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-17 15:51:14 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-18 14:28:50 +0100
commit9d938fd77da033f09530571a6194609aee8bbc7b (patch)
tree236b12b7cad36ab2eebd9111fe8234949659e9d4 /app/models
parentdbd347bfa00e133da8ac178612ed8c30ef871ca4 (diff)
downloadgitlab-ce-9d938fd77da033f09530571a6194609aee8bbc7b.tar.gz
List new commits for newly pushed branch in activity view.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/event.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 8d20d7ef252..2103a48a71b 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -247,7 +247,7 @@ class Event < ActiveRecord::Base
end
def push_with_commits?
- md_ref? && commits.any? && commit_from && commit_to
+ !commits.empty? && commit_from && commit_to
end
def last_push_to_non_root?