File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Git env config
65
65
config.binary_path = ' /git/bin/path'
66
66
67
67
# If you need to use a custom SSH Key
68
- config.ssh_key = ' /path/to/ssh/key '
68
+ config.git_ssh = ' /path/to/ssh/script '
69
69
end
70
70
71
71
```
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class Config
4
4
5
5
attr_writer :binary_path
6
6
7
- attr_accessor :ssh_key
7
+ attr_accessor :git_ssh
8
8
9
9
def initialize
10
10
@binary_path = nil
Original file line number Diff line number Diff line change @@ -809,7 +809,7 @@ def set_custom_git_env_variables
809
809
ENV [ 'GIT_DIR' ] = @git_dir
810
810
ENV [ 'GIT_WORK_TREE' ] = @git_work_dir
811
811
ENV [ 'GIT_INDEX_FILE' ] = @git_index_file
812
- ENV [ 'GIT_SSH' ] = Git ::Base . config . ssh_key
812
+ ENV [ 'GIT_SSH' ] = Git ::Base . config . git_ssh
813
813
end
814
814
815
815
# Runs a block inside an environment with customized ENV variables.
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ def test_set_config
31
31
def test_env_config
32
32
Git . configure do |config |
33
33
config . binary_path = "/usr/bin/git"
34
- config . ssh_key = "/path/to/ssh"
34
+ config . git_ssh = "/path/to/ssh/script "
35
35
end
36
36
37
37
@git . log
38
38
ensure
39
39
Git . configure do |config |
40
40
config . binary_path = nil
41
- config . ssh_key = nil
41
+ config . git_ssh = nil
42
42
end
43
43
end
44
44
You can’t perform that action at this time.
0 commit comments