aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-11-08 11:08:31 +0100
committerGuido Günther <agx@sigxcpu.org>2018-11-08 11:08:31 +0100
commit370244733d44eaf509d242d30b5dddbb26f53fde (patch)
treecb3d292acd47627e01c5c6f579ee0a5c9feba9a8
parentf0cb11d93f7d860a94a4be2fe1aa4e963ef76d03 (diff)
GitRepository: Make git_inout available everywhere
-rw-r--r--gbp/git/repository.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 617c172f..a44c71e1 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -192,10 +192,10 @@ class GitRepository(object):
"""
if not cwd:
cwd = self.path
- return self.__git_inout(command, args, input, extra_env, cwd, capture_stderr, config_args)
+ return self.git_inout(command, args, input, extra_env, cwd, capture_stderr, config_args)
@classmethod
- def __git_inout(cls, command, args, input, extra_env, cwd, capture_stderr, config_args=None):
+ def git_inout(cls, command, args, input, extra_env, cwd, capture_stderr, config_args=None):
"""
As _git_inout but can be used without an instance
"""
@@ -2001,12 +2001,12 @@ class GitRepository(object):
if not os.path.exists(abspath):
os.makedirs(abspath)
try:
- stdout, stderr, ret = cls.__git_inout(command='init',
- args=args.args,
- input=None,
- extra_env=None,
- cwd=abspath,
- capture_stderr=True)
+ stdout, stderr, ret = cls.git_inout(command='init',
+ args=args.args,
+ input=None,
+ extra_env=None,
+ cwd=abspath,
+ capture_stderr=True)
except Exception as excobj:
raise GitRepositoryError("Error running git init: %s" % excobj)
if ret:
@@ -2067,12 +2067,12 @@ class GitRepository(object):
os.makedirs(abspath)
try:
- stdout, stderr, ret = cls.__git_inout(command='clone',
- args=args.args,
- input=None,
- extra_env=None,
- cwd=abspath,
- capture_stderr=True)
+ stdout, stderr, ret = cls.git_inout(command='clone',
+ args=args.args,
+ input=None,
+ extra_env=None,
+ cwd=abspath,
+ capture_stderr=True)
except Exception as excobj:
raise GitRepositoryError("Error running git clone: %s" % excobj)
if ret: