From 3a030696a35aedb20ea0f4810c01376c8996c4d6 Mon Sep 17 00:00:00 2001 From: Akzhan Date: Wed, 3 Apr 2013 15:25:19 +0400 Subject: [PATCH] File history tab now follows renames. --- lib/gitlab/git/commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index 35991a383f6..e26e38f28f8 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -57,7 +57,7 @@ module Gitlab def commits(repo, ref, path = nil, limit = nil, offset = nil) if path - repo.log(ref, path, max_count: limit, skip: offset) + repo.log(ref, path, max_count: limit, skip: offset, follow: path.present?) elsif limit && offset repo.commits(ref, limit, offset) else -- GitLab