зеркало из https://github.com/github/ruby.git
vcs.rb: do not reference the constant before assignment
This commit is contained in:
Родитель
2d3ecc4d28
Коммит
aa8c6759ee
|
@ -424,12 +424,12 @@ class VCS
|
|||
SAFE_DIRECTORIES ||=
|
||||
begin
|
||||
command = ENV["GIT"] || 'git'
|
||||
IO.popen(%W"#{command} config --global --get-all safe.directory", &:read).split("\n")
|
||||
dirs = IO.popen(%W"#{command} config --global --get-all safe.directory", &:read).split("\n")
|
||||
rescue
|
||||
command = nil
|
||||
[]
|
||||
dirs = []
|
||||
ensure
|
||||
VCS.dump(SAFE_DIRECTORIES, "safe.directory: ") if $DEBUG
|
||||
VCS.dump(dirs, "safe.directory: ") if $DEBUG
|
||||
COMMAND = command
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче