Commit f1b35962 authored by Eric Timmons's avatar Eric Timmons
Browse files

Improve git credential helper

Wait to print the password until git closes stdin. There seems to be an
occasional race condition on some set ups that causes git to not get the
credentials from the helper appropriately. Try this first before adding a
larger sleep.
parent 8ac34859
...@@ -115,7 +115,7 @@ process list." ...@@ -115,7 +115,7 @@ process list."
(when password (when password
(push (cons "CLPM_GIT_PASS_HELPER_PASS" password) env) (push (cons "CLPM_GIT_PASS_HELPER_PASS" password) env)
(push "-c" prefix) (push "-c" prefix)
(push "credential.helper=!f() { echo \"password=${CLPM_GIT_PASS_HELPER_PASS}\"; }; f" (push "credential.helper=!f() { while read line; do sleep 0; done; echo \"password=${CLPM_GIT_PASS_HELPER_PASS}\"; }; f"
prefix)) prefix))
(values (nreverse prefix) (values (nreverse prefix)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment