diff --git a/lib/gitlab/mercurial/hg_git_repository.rb b/lib/gitlab/mercurial/hg_git_repository.rb index 3472e1cac41f00c045f6874acb58f94444ebdee8..91b90a0267c22a706dec2aea6464daa158c17115 100644 --- a/lib/gitlab/mercurial/hg_git_repository.rb +++ b/lib/gitlab/mercurial/hg_git_repository.rb @@ -1477,7 +1477,7 @@ def get_hg_heptapod_config(local: false) hg_env.update({ 'HGUSER' => 'Heptapod system', 'HEPTAPOD_SKIP_ALL_GITLAB_HOOKS' => 'yes' }) - del hg_env['HGRCPATH'] if local + hg_env.delete('HGRCPATH') if local hg_exe = Gitlab.config.mercurial.bin_path out, status = popen([hg_exe, 'config', 'heptapod'],