This change is a workaround for a bug of git for windows: When stderr is redirected, git for windows fails to detect the console and is unable to prompt for a password.
The workaround solves this problem by checking the output (only on Windows) and if an error with the public key authentication is detected, it executes the following retries without a redirection of stderr. This also disables the ability to monitor the progress and therefore the output timeout, but since the full timeout is still in place it should be manageable.
This change is a workaround for a bug of git for windows: When
stderr
is redirected, git for windows fails to detect the console and is unable to prompt for a password.The workaround solves this problem by checking the output (only on Windows) and if an error with the public key authentication is detected, it executes the following retries without a redirection of
stderr
. This also disables the ability to monitor the progress and therefore the output timeout, but since the full timeout is still in place it should be manageable.This change closes issue #31.