summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/_commits.html.haml
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-04 22:43:43 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-04 22:43:43 +0800
commit99410a4750b514b8d58a6d44f687ef29ecebc7cc (patch)
treed180883a7f4ae577a9bd63afc5c8fdfa2b386408 /app/views/projects/commits/_commits.html.haml
parentb9b508ad055db7633e44178cb4a00ef934313b04 (diff)
downloadgitlab-ce-99410a4750b514b8d58a6d44f687ef29ecebc7cc.tar.gz
Fetch locals to avoid undefined method/local errorshow-status-from-branch
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034/diffs#note_17868074
Diffstat (limited to 'app/views/projects/commits/_commits.html.haml')
-rw-r--r--app/views/projects/commits/_commits.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml
index 943ec24cfb5..48756c68941 100644
--- a/app/views/projects/commits/_commits.html.haml
+++ b/app/views/projects/commits/_commits.html.haml
@@ -1,3 +1,4 @@
+- ref = local_assigns.fetch(:ref)
- commits, hidden = limited_commits(@commits)
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|