]> git.scottworley.com Git - git-cache/blobdiff - git_cache.py
Fix bug: Stray output on new cache entry
[git-cache] / git_cache.py
index c848161076caa44f8bccfa7c28180c2da8ac13d8..aab5b070fdb15509f4fd74cd182db5ecfc541280 100644 (file)
@@ -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)