Don't call stdout stdin.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 19 Aug 2010 12:26:04 +0000 (14:26 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sat, 21 Aug 2010 16:03:23 +0000 (18:03 +0200)
Git-Dch: Ignore

gbp/git.py

index 279e901..7547d15 100644 (file)
@@ -58,10 +58,10 @@ class GitRepository(object):
                                  stdin=subprocess.PIPE,
                                  stdout=subprocess.PIPE,
                                  env=env)
-        (stdin, stderr) = popen.communicate(input)
+        (stdout, stderr) = popen.communicate(input)
         if popen.returncode:
-            stdin = None
-        return stdin
+            stdout = None
+        return stdout
 
     def base_dir(self):
         """Base of the repository"""