diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-07-07 22:47:38 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-07-07 22:47:38 +0000 |
commit | 5d3a0d38cb7311a71433ddad2126a1eeddc5b31a (patch) | |
tree | e7fe03537bcbf682cfb65381ab4c21f40ae729fa /app/models/project.rb | |
parent | dad406da23f7a4d94f9f8df1a4b8743dc0e9dc96 (diff) | |
parent | 93dd8b0a088b51874c45bb69a5255529f7e37dd5 (diff) | |
download | gitlab-ce-5d3a0d38cb7311a71433ddad2126a1eeddc5b31a.tar.gz |
Merge branch 'prefer-ref' into 'master'
Prefer ref rather than id because id is shadowing database id
## What does this MR do?
Just a local variable renaming.
## Why was this MR needed?
Prefer ref rather than id because id is shadowing database id.
See merge request !5134
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 5005ee7cd32..a66b750cd48 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -425,8 +425,8 @@ class Project < ActiveRecord::Base container_registry_repository.tags.any? end - def commit(id = 'HEAD') - repository.commit(id) + def commit(ref = 'HEAD') + repository.commit(ref) end def merge_base_commit(first_commit_id, second_commit_id) |