summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index d96caddbf2..857b7928a4 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -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