1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

makecorever.py: Hide GIT error messages. Fixes #7744 (#7745)

* makecorever.py: Hide GIT error messages. Fixes #7744
This commit is contained in:
Manuel Reimer 2020-12-10 18:11:26 +01:00 committed by GitHub
parent eaaa1dbcc8
commit 456640012c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ def generate(path, platform_path, git_ver="ffffffff", git_desc="unspecified"):
def git(*args):
cmd = ["git", "-C", platform_path]
cmd.extend(args)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True, stderr=subprocess.DEVNULL)
return proc.stdout.readlines()[0].strip()
try: