From: Scott Worley Date: Wed, 26 Aug 2020 05:45:29 +0000 (-0700) Subject: Fix bug: Stray output on new cache entry X-Git-Tag: v1.2.3~1 X-Git-Url: http://git.scottworley.com/git-cache/commitdiff_plain/513b354cd4a557c53273e0bacc9be812407f2a4a?ds=sidebyside Fix bug: Stray output on new cache entry --- 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)