Skip to content

Commit b0e111f

Browse files
Updating ssh_key -> git_ssh
1 parent 6eee233 commit b0e111f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Git env config
6565
config.binary_path = '/git/bin/path'
6666

6767
# 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'
6969
end
7070

7171
```

lib/git/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Config
44

55
attr_writer :binary_path
66

7-
attr_accessor :ssh_key
7+
attr_accessor :git_ssh
88

99
def initialize
1010
@binary_path = nil

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def set_custom_git_env_variables
809809
ENV['GIT_DIR'] = @git_dir
810810
ENV['GIT_WORK_TREE'] = @git_work_dir
811811
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
813813
end
814814

815815
# Runs a block inside an environment with customized ENV variables.

tests/units/test_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ def test_set_config
3131
def test_env_config
3232
Git.configure do |config|
3333
config.binary_path = "/usr/bin/git"
34-
config.ssh_key = "/path/to/ssh"
34+
config.git_ssh = "/path/to/ssh/script"
3535
end
3636

3737
@git.log
3838
ensure
3939
Git.configure do |config|
4040
config.binary_path = nil
41-
config.ssh_key = nil
41+
config.git_ssh = nil
4242
end
4343
end
4444

0 commit comments

Comments
 (0)