summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorHiroyuki Sato <h-sato@ruby-dev.jp>2016-12-20 22:43:59 +0900
committerHiroyuki Sato <h-sato@ruby-dev.jp>2016-12-20 22:43:59 +0900
commit1a59766d0c7ed78a7167040af512842979d2414e (patch)
tree7687c37762986681fc2f459bed188ef61e3663ca /lib/api
parente78f1048d9f9e327f6386dbeae020a2217d8e05f (diff)
downloadgitlab-ce-1a59766d0c7ed78a7167040af512842979d2414e.tar.gz
Merge two methods.
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/files.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index f95b9be1722..779f54c1ded 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -70,7 +70,7 @@ module API
ref: params[:ref],
blob_id: blob.id,
commit_id: commit.id,
- last_commit_id: repo.cache_last_commit_id_for_path(commit.sha, params[:file_path])
+ last_commit_id: repo.last_commit_id_for_path(commit.sha, params[:file_path])
}
end