exe/git-multi in git-multi-5.0.0 vs exe/git-multi in git-multi-6.0.0

- old
+ new

@@ -4,14 +4,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'git/multi' multi_repo = command = nil -if !STDIN.tty? - # read list of repo full names from STDIN (~pseudo multi-repo) - multi_repo = STDIN.readlines.map(&:strip).map(&:freeze).freeze - # reopen STDIN (to ensure all `Kernel.system` based cmds work) - STDIN.reopen('/dev/tty') +if !$stdin.tty? + # read list of repo full names from $stdin (~pseudo multi-repo) + multi_repo = $stdin.readlines.map(&:strip).map(&:freeze).freeze + # reopen $stdin (to ensure all `Kernel.system` based cmds work) + $stdin.reopen('/dev/tty') elsif (command = ARGV.shift)&.start_with?('++') multi_repo = command.delete('++') command = nil end