From 32a606be6a32a966412a49e8cb9102301f6352d4 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 29 Jan 2020 21:45:10 +0100 Subject: [PATCH] git: remove unused _git_capture() Signed-off-by: Johannes Berg Reviewed-by: Rob Browning --- lib/bup/git.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/bup/git.py b/lib/bup/git.py index 6f2dba3..f4e27ad 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -57,12 +57,6 @@ def _git_wait(cmd, p): if rv != 0: raise GitError('%r returned %d' % (cmd, rv)) -def _git_capture(argv): - p = subprocess.Popen(argv, stdout=subprocess.PIPE, env=_gitenv()) - r = p.stdout.read() - _git_wait(argv, p) - return r - def git_config_get(option, repo_dir=None): cmd = (b'git', b'config', b'--get', option) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, -- 2.39.2