From ef0b15c55268fbf7ac8ee0bd0b5b8bc0fe265ac4 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Sat, 17 Jan 2015 14:54:54 -0800
Subject: [PATCH] Fix commits pagination

---
 CHANGELOG                                     | 2 +-
 app/views/projects/commits/_commits.html.haml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 387d42a7aca..9eb68042554 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -23,7 +23,7 @@ v 7.8.0
   - 
   - 
   - 
-  - 
+  - Fix commits pagination
   - 
   - 
   - 
diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml
index f279e3c37cd..2d0ca671fa0 100644
--- a/app/views/projects/commits/_commits.html.haml
+++ b/app/views/projects/commits/_commits.html.haml
@@ -1,3 +1,6 @@
+- unless defined?(project)
+  - project = @project
+
 - @commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
   .row.commits-row
     .col-md-2
-- 
GitLab