diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-05 13:52:15 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-14 11:07:01 +0200 |
commit | fa58068b2894b900d4b2519825411e0710557fc6 (patch) | |
tree | ab82d1f4e9bbe4162c74ae7c9c1f4d8117bf546a /app/models/repository.rb | |
parent | 8a1064d76252e16b64b6e4f03d819b6dc20e1d6d (diff) | |
download | gitlab-ce-fa58068b2894b900d4b2519825411e0710557fc6.tar.gz |
Refactor ci_status on MergeRequestController
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 37833cf004f..72e473871fa 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -719,8 +719,8 @@ class Repository end end - def ref_name_for_sha(environment_ref_path, sha) - args = %W(#{Gitlab.config.git.bin_path} for-each-ref --count=1 #{environment_ref_path} --contains #{sha}) + def ref_name_for_sha(ref_path, sha) + args = %W(#{Gitlab.config.git.bin_path} for-each-ref --count=1 #{ref_path} --contains #{sha}) # Not found -> ["", 0] # Found -> ["b8d95eb4969eefacb0a58f6a28f6803f8070e7b9 commit\trefs/environments/production/77\n", 0] |