diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 09:20:42 -0800 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 09:20:42 -0800 |
| commit | 635f62be67a0a0e7cb02df40317e1c58c78738fb (patch) | |
| tree | d204ea099c82dc19624324da51c94dce680df40d /lib | |
| parent | b73170f5c15401e5b43ec18584c8036bf973ca0b (diff) | |
| parent | a63187f28b18e2feea16681b313166a982254e4e (diff) | |
| download | gitlab-ce-635f62be67a0a0e7cb02df40317e1c58c78738fb.tar.gz | |
Merge branch 'stop_popen_zombies'
Conflicts:
CHANGELOG
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/force_push_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/force_push_check.rb b/lib/gitlab/force_push_check.rb index 6a52cdba608..6ba2c3ad00a 100644 --- a/lib/gitlab/force_push_check.rb +++ b/lib/gitlab/force_push_check.rb @@ -4,7 +4,7 @@ module Gitlab return false if project.empty_repo? if oldrev != Gitlab::Git::BLANK_SHA && newrev != Gitlab::Git::BLANK_SHA - missed_refs = IO.popen(%W(git --git-dir=#{project.repository.path_to_repo} rev-list #{oldrev} ^#{newrev})).read + missed_refs, _ = Gitlab::Popen.popen(%W(git --git-dir=#{project.repository.path_to_repo} rev-list #{oldrev} ^#{newrev})) missed_refs.split("\n").size > 0 else false |
