From 6c12c43df08dd1ecdc0df8a2663096ff0cdb3db7 Mon Sep 17 00:00:00 2001
From: nigel007 <609441862@qq.com>
Date: Sun, 16 Jun 2019 12:38:03 +0800
Subject: [PATCH] change branch to branch_name

---
 app/controllers/contributions_controller.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/controllers/contributions_controller.rb b/app/controllers/contributions_controller.rb
index 6bb17581b..a2896f9fb 100644
--- a/app/controllers/contributions_controller.rb
+++ b/app/controllers/contributions_controller.rb
@@ -18,9 +18,10 @@ class ContributionsController < ApplicationController
       @del_count = Hash.new
       @change_count = Hash.new
       branches.each do |branch|
+        branch_name = branch.name
         Rails.logger.info("!!!!!!! This is the branch:")
-        Rails.logger.info(branch)
-        static_total_per_user = @g.rep_stats(project_id, :rev => branch)
+        Rails.logger.info(branch_name)
+        static_total_per_user = @g.rep_stats(project_id, :rev => branch_name)
         static_total_per_user.each do |static|
           uname = static.uname.to_s
           change_num = static.changes.to_i