Python git svn dcommit->通过标准输入传递密码

Python git svn dcommit->通过标准输入传递密码,python,git,git-svn,command-line-interface,Python,Git,Git Svn,Command Line Interface,我试图从python脚本运行git svn dcommit命令,并处理我必须手动指定的密码。 此命令的标准输出为: Committing to http://svn/trunk ... Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote Password for 'username': 但我明白了 :Co

我试图从python脚本运行git svn dcommit命令,并处理我必须手动指定的密码。 此命令的标准输出为:

Committing to http://svn/trunk ...
Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote
Password for 'username':
但我明白了

:Committing to http://svn/trunk ...
Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote
Password for 'username':
在此之后,脚本将等待git svn dcommit未提供的输出。它只读第一行,就这样。如何获得其余的输出


谢谢。

我不知道你的git/svn/shell版本。但git svn将信息输出到我的机器中的stderr。谢谢您的提示!它向stdout写入1行,向stderr写入2行,最后一个密码是“username”:我既不能从stdout也不能从stderr读取。git版本1.7.0.4,python脚本在SH下运行。有什么想法吗?也许它创造了另一个过程?git svn是否将2行和3行打印到stderr?git svn只是git和svn之间的一个perl脚本。它通过git调用,并通过svn调用RealJob。如果您继续使用相同的svn帐户,则dcommit将无法获得用户名/密码输入。你这么幸运吗?问题是,我必须使用多个帐户,因此每次脚本运行时,我必须找到手动指定密码的方法。我认为这个问题可以通过修补这个脚本来解决。你可以在~/.subversion/auth中添加/修改svn的acc/pwd。。。git svn非常有用,但无法完全访问svn。祝你好运。我不知道你的git/svn/shell版本。但git svn将信息输出到我的机器中的stderr。谢谢您的提示!它向stdout写入1行,向stderr写入2行,最后一个密码是“username”:我既不能从stdout也不能从stderr读取。git版本1.7.0.4,python脚本在SH下运行。有什么想法吗?也许它创造了另一个过程?git svn是否将2行和3行打印到stderr?git svn只是git和svn之间的一个perl脚本。它通过git调用,并通过svn调用RealJob。如果您继续使用相同的svn帐户,则dcommit将无法获得用户名/密码输入。你这么幸运吗?问题是,我必须使用多个帐户,因此每次脚本运行时,我必须找到手动指定密码的方法。我认为这个问题可以通过修补这个脚本来解决。你可以在~/.subversion/auth中添加/修改svn的acc/pwd。。。git svn非常有用,但无法完全访问svn。祝你好运
:Committing to http://svn/trunk ...
Authentication realm: <http://svn:80> Active Directory credentials for users. Specific name and password for remote
Password for 'username':