I'm trying to run "git svn dcommit" command from python script and deal with password which I have to specify manually. The standard output of this command is:
Committing to http://svn/trunk ...
Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote
Password for 'username':
at this moment, I have to specify password. Okay, there are three lines I need to read from stdout.
proc = subprocess.Popen(' git svn dcommit --username="username" ', shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out = proc.stdout.readline()
print ":"+out
out = proc.stdout.readline()
print ":"+out
out = proc.stdout.readline()
print ":"+out
proc.stdin.write('password\n')
But I get
:Committing to http://svn/trunk ...
Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote
Password for 'username':
and after this, the script is waiting for the output which is not provided by the "git svn dcommit". It reads only first line, that's it. How can I get the rest output?
Thank you.