handle_data (Capistrano::Deploy::SCM::Git)

    # File lib/capistrano/recipes/deploy/scm/git.rb, line 239
            def handle_data(state, stream, text)
              host = state[:channel][:host]
              logger.info "[#{host} :: #{stream}] #{text}"
              case text
              when /\bpassword.*:/i
                # git is prompting for a password
                unless pass = variable(:scm_password)
                  pass = Capistrano::CLI.password_prompt
                end
                "#{pass}\n"
              when %r{\(yes/no\)}
                # git is asking whether or not to connect
                "yes\n"
              when /passphrase/i
                # git is asking for the passphrase for the user's key
                unless pass = variable(:scm_passphrase)
                  pass = Capistrano::CLI.password_prompt
                end
                "#{pass}\n"
              when /accept \(t\)emporarily/
                # git is asking whether to accept the certificate
                "t\n"
              end
            end