[BUG] git clone always fails after first call in Windows #25078
-
I emailed a bug report to support but didn’t hear back just yet and figured I ought to post here and see if anyone has experienced this. Am I just lacking sleep? |
Beta Was this translation helpful? Give feedback.
Answered by
weide-zhou
Jan 10, 2020
Replies: 2 comments
-
Git command output are done on stderr not stdout, so you need to pipe stderr. Set GIT_REDIRECT_STDERR=’2>&1’ for env first, code as below, please refer to the link for more details.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
Thank you much for the workaround! I see folks on Azure are having issues with this as well (here). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Git command output are done on stderr not stdout, so you need to pipe stderr. Set GIT_REDIRECT_STDERR=’2>&1’ for env first, code as below, please refer to the link for more details.