diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-17 15:51:14 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-18 14:28:50 +0100 |
commit | 9d938fd77da033f09530571a6194609aee8bbc7b (patch) | |
tree | 236b12b7cad36ab2eebd9111fe8234949659e9d4 /app/models | |
parent | dbd347bfa00e133da8ac178612ed8c30ef871ca4 (diff) | |
download | gitlab-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.rb | 2 |
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? |