I want to write a program which will clone remote git repository and then do bunch of other stuff. The problem is that 'git clone' asks for password. It does not work when I open pipes to stdin/out/err to 'git clone' because it runs git-remote-http underneath which prompts for password on TTY.
I would like to pass the password from my program. I am using Python and Popen from subprocess. Code below does not wotk.
Popen(['git', 'clone', 'https://my.git.repo/repo.git'], shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE)
How can I achieve this?