File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Git env config
69
69
70
70
```
71
71
72
- _ NOTE: Another way to specify where is the ` git ` binary is through the environment variable ` GIT_BIN ` _
72
+ _ NOTE: Another way to specify where is the ` git ` binary is through the environment variable ` GIT_BINARY ` _
73
73
74
74
75
75
Here are the operations that need read permission only.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def initialize
10
10
end
11
11
12
12
def binary_path
13
- @binary_path || ENV [ 'GIT_BIN ' ] || 'git'
13
+ @binary_path || ENV [ 'GIT_BINARY ' ] || 'git'
14
14
end
15
15
16
16
def git_ssh
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def test_env_config
34
34
assert_equal ( Git ::Base . config . binary_path , 'git' )
35
35
assert_equal ( Git ::Base . config . git_ssh , nil )
36
36
37
- ENV [ 'GIT_BIN ' ] = '/env/bin/git'
37
+ ENV [ 'GIT_BINARY ' ] = '/env/bin/git'
38
38
ENV [ 'GIT_SSH' ] = '/env/git/ssh'
39
39
40
40
assert_equal ( Git ::Base . config . binary_path , '/env/bin/git' )
@@ -51,7 +51,7 @@ def test_env_config
51
51
@git . log
52
52
ensure
53
53
ENV [ 'GIT_SSH' ] = nil
54
- ENV [ 'GIT_BIN ' ] = nil
54
+ ENV [ 'GIT_BINARY ' ] = nil
55
55
56
56
Git . configure do |config |
57
57
config . binary_path = nil
You can’t perform that action at this time.
0 commit comments