{"thread":{"id":"52392","subject":"Re: How to redirect git std input in Python?","startedAt":"2019-12-06T02:40:53Z","lastAt":"2019-12-06T02:40:53Z","messageCount":1,"participants":["Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"387598","messageId":"20191206024050.GA1223222@coredump.intra.peff.net","threadId":"52392","inReplyTo":"f3b45643-6ca5-4f7f-aec2-8438d1451629.kan.wu@genetalks.com","subject":"Re: How to redirect git std input in Python?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-12-06T02:40:50Z","receivedAt":"2019-12-06T02:40:53Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Dec 06, 2019 at 09:34:30AM +0800, 吴侃 wrote:\n\n> To: gitster <gitster@pobox.com>, peff <peff@peff.net>\n\nPlease send questions to the public mailing list at git@vger.kernel.org.\nThen more people will see your question, and everyone will benefit from\nseeing the answer.\n\n> I want to develop a git plugin in a Python IDE.when i clone a private\n> git project,it needs to input username and passward in terminal.\n> [...]\n> so i want to redirect the username or password input to a dialog use\n> Python in my plugin.\n\nLook into either the GIT_ASKPASS environment variable described in \"git\nhelp git\", or if you want something a little nicer, the credential\nsubsystem (described in https://git-scm.com/docs/gitcredentials, but\nespecially the \"custom helpers\" part at the end).\n\n-Peff\n"}]}