exe/git-multi in git-multi-4.0.1 vs exe/git-multi in git-multi-5.0.0
- old
+ new
@@ -9,11 +9,11 @@
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[2..-1]
+elsif (command = ARGV.shift)&.start_with?('++')
+ multi_repo = command.delete('++')
command = nil
end
begin
case (command ||= ARGV.shift)