[projects/git-slug: 11/170] commandexc returns stderr
glen
glen at pld-linux.org
Mon Sep 21 21:39:44 CEST 2015
commit 1480316a28d93f1d0657f1fcc4d4943267390fc9
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Mon Sep 12 12:21:01 2011 +0100
commandexc returns stderr
It is in preparation for fetch to use it.
pldrepo/gitrepo.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pldrepo/gitrepo.py b/pldrepo/gitrepo.py
index a78c409..68c5488 100644
--- a/pldrepo/gitrepo.py
+++ b/pldrepo/gitrepo.py
@@ -31,7 +31,7 @@ class GitRepo:
(out, err) = proc.communicate()
if proc.returncode:
raise GitRepoError(err)
- return out
+ return (out, err)
def commitfile(self, path, message):
clist = ['commit', '-m', message, path]
@@ -40,7 +40,7 @@ class GitRepo:
def configvalue(self, option):
clist = ['config', '-z', option]
try:
- return self.commandexc(clist)
+ return self.commandexc(clist)[0]
except GitRepoError:
return None
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list