Re: How to redirect git std input in Python?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 06, 2019 at 09:34:30AM +0800, 吴侃 wrote:

> To: gitster <gitster@xxxxxxxxx>, peff <peff@xxxxxxxx>

Please send questions to the public mailing list at git@xxxxxxxxxxxxxxx.
Then more people will see your question, and everyone will benefit from
seeing the answer.

> I want to develop a git plugin in a Python IDE.when i clone a private
> git project,it needs to input username and passward in terminal.
> [...]
> so i want to redirect the username or password input to a dialog use
> Python in my plugin.

Look into either the GIT_ASKPASS environment variable described in "git
help git", or if you want something a little nicer, the credential
subsystem (described in https://git-scm.com/docs/gitcredentials, but
especially the "custom helpers" part at the end).

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux