seeraven / gitcache

Local cache for git repositories to speed up working with large repositories and multiple clones.
BSD 3-Clause "New" or "Revised" License
33 stars 6 forks source link

workaround: Disable stderr capture on windows as a workaround to git for windows bug. #33

Closed seeraven closed 5 months ago

seeraven commented 5 months ago

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.