-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone function breaks after upgrade from 2.7.10 to 2.8.1 #11
Comments
I haven't tested it on ansible 2.8 yet, some more details could be useful. |
I can't reproduce the issue when I run the win_git powershell script on the Windows host itself so it could be something in our ansible environments. I was hoping someone else was on 2.8.1 to see if that was the case. I am getting a error message "Error cloning ssh://XXX to C:\XXX! Msg: Cloning into C:\XXX ...." but haven't been able to extract any useful details from the error variable yet. From what I can tell the git clone actually works but an error is still thrown. I'm not considering this a permanent fix but if I add the below line to the win_git script everything works as it did before. |
I am experiencing the same problem. I see that same error, and the clone still happens. |
I am having the same problem, tried to figure out the reason, but actually the only thing I can see is that the cloning fails but without any error. Running it on the machine works. By forwarding GIT_REDIRECT_STDERR=2>&1. Any idea what could be the problem? |
I've not used the module at all, just inspecting it for use in my own projects, but from the sounds of things the issue is simply that the Windows Git command outputs content to STDERR which is often common during a transaction like this. By setting that environment variable, you throw that output into STDOUT instead. This, in itself, doesn't appear problematic but looking at these lines: Lines 197 to 198 in a592bd1
You can see that the $LASTEXITCODE is retrieved which is the exit from the command cloning the repo but the last exit won't be from that, it'll be from the Out-Null instead since that's the last command to run using the output piped from the Tee-Object and, in turn, the git clone. This output from Out-Null becomes the
All assumptions and untested but they might assist you guys. |
+1 |
Hello, Foe anyone that it's facing the same error we found the message "fatal: Unable to persist credentials with the 'wincredman' credential store." after add GIT_REDIRECT_STDERR=2>&1. To solve this we unset the credential.helper and credential.credentialSore and set dpapi before the cloning:
|
Has anyone else had issues cloning a repository after upgrading to Ansible 2.8.1. I can provide more details if so. We had two environments that were working on 2.7.10 but are no longer working on 2.8.1. Thanks
The text was updated successfully, but these errors were encountered: