Skip to content

Commit bffaadd

Browse files
committed
Pass the environment through
1 parent c2e20f5 commit bffaadd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/units/test_merge.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ def setup
7070
# end
7171

7272
def env
73-
ENV.to_h.tap do |env|
74-
env['GIT_DIR'] = git_dir
75-
env['GIT_WORK_TREE'] = work_tree
76-
env['GIT_SSH'] = Git::Base.config.git_ssh
77-
env.delete('PATH')
78-
end
73+
ENV.to_h
7974
end
8075

76+
def env_var(name)
77+
78+
end
8179
def command(cmd)
8280
puts '-' * 80
8381
puts "Running: #{cmd}"
@@ -107,6 +105,10 @@ def work_tree
107105
File.expand_path(Dir.pwd)
108106
end
109107

108+
def test_command_with_env
109+
110+
end
111+
110112
def test_octopus_merge
111113
git_cmd = Git::Base.config.binary_path
112114

0 commit comments

Comments
 (0)