Prefer ref rather than id because id is shadowing database id
Some context: http://doc.gitlab.com/ce/api/repository_files.html#get-file-from-repository http://doc.gitlab.com/ce/api/repositories.html#list-repository-tree Slack: https://gitlab.slack.com/archives/questions/p1467890450002077
This commit is contained in:
parent
3c89a788c7
commit
011e281604
1 changed files with 2 additions and 2 deletions
|
@ -425,8 +425,8 @@ class Project < ActiveRecord::Base
|
||||||
container_registry_repository.tags.any?
|
container_registry_repository.tags.any?
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit(id = 'HEAD')
|
def commit(ref = 'HEAD')
|
||||||
repository.commit(id)
|
repository.commit(ref)
|
||||||
end
|
end
|
||||||
|
|
||||||
def merge_base_commit(first_commit_id, second_commit_id)
|
def merge_base_commit(first_commit_id, second_commit_id)
|
||||||
|
|
Loading…
Reference in a new issue