From 5cbd591a1e755584ba4d9528aff2f19da7204598 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 26 Jun 2019 19:48:26 +0200 Subject: [PATCH] .strip() only once `ans.append('KITTY_VCS_REV="{}"'.format(rev.strip()))` strips the whitespace again later. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f64c3c2f1..4cac0a404 100755 --- a/setup.py +++ b/setup.py @@ -318,7 +318,7 @@ def get_vcs_rev_defines(): ans = [] if os.path.exists('.git'): try: - rev = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip() + rev = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8') except FileNotFoundError: try: with open('.git/refs/heads/master') as f: