From 9b7976a07e148f7f67c98b12239a1f950c999e9e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 08:18:05 -0700 Subject: [PATCH] refactor: remove branch and commit info from git report --- aider/report.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aider/report.py b/aider/report.py index 58aa22f52..c09572476 100644 --- a/aider/report.py +++ b/aider/report.py @@ -28,11 +28,7 @@ def get_os_info(): def get_git_info(): try: git_version = subprocess.check_output(["git", "--version"]).decode().strip() - branch = ( - subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).decode().strip() - ) - commit = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() - return f"Git version: {git_version}\nBranch: {branch}\nCommit: {commit}" + return f"Git version: {git_version}" except Exception: return "Git information unavailable"