+ raise GitException, '%s failed (%s)' % (str(cmd),
+ p.childerr.read().strip())
+
+def _input_str(cmd, string):
+ p = popen2.Popen3(cmd, True)
+ p.tochild.write(string)
+ p.tochild.close()
+ if p.wait():
+ raise GitException, '%s failed (%s)' % (str(cmd),
+ p.childerr.read().strip())