lib/git/multi/config.rb in git-multi-2.1.0 vs lib/git/multi/config.rb in git-multi-2.2.0
- old
+ new
@@ -21,10 +21,10 @@
def global_list(name, default = nil)
global_option(name, default).split(',').map(&:strip).map(&:freeze)
end
def env_var(name, default = nil)
- value = ENV[name].dup.freeze
+ value = ENV[name]
(value.nil? || value.empty?) && default ? default : value
end
end
end