From 513b354cd4a557c53273e0bacc9be812407f2a4a Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 25 Aug 2020 22:45:29 -0700 Subject: [PATCH] Fix bug: Stray output on new cache entry --- Changelog | 2 ++ git_cache.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 52b5a6f..eff794e 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ ## [Unreleased] +### Changed +- Fixed stray output from repo creation ## [1.2.2] - 2020-08-25 diff --git a/git_cache.py b/git_cache.py index c848161..aab5b07 100644 --- a/git_cache.py +++ b/git_cache.py @@ -53,7 +53,8 @@ def fetch(repo: Repo, ref: Ref) -> Tuple[Path, Rev]: cachedir = git_cachedir(repo) if not os.path.exists(cachedir): logging.debug("Initializing git repo") - subprocess.run(['git', 'init', '--bare', cachedir], check=True) + subprocess.run(['git', 'init', '--bare', cachedir], + check=True, stdout=sys.stderr) logging.debug('Fetching ref "%s" from %s', ref, repo) _git_fetch(cachedir, repo, ref) -- 2.44.1