From 01c8a0764891c983a240be67d95b5b79b8c94a00 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sat, 30 Mar 2013 23:34:09 +0100 Subject: [PATCH] remove unused os.getcwd() Signed-off-by: Johannes Berg --- lib/git.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/git.py b/lib/git.py index 888ca2777f17..38411e39993f 100644 --- a/lib/git.py +++ b/lib/git.py @@ -15,7 +15,6 @@ def _check(process): _sha_re = re.compile('^[0-9a-fA-F]*$') def rev_parse(rev='HEAD', tree=None): - olddir = os.getcwd() process = subprocess.Popen(['git', 'rev-parse', rev], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True, universal_newlines=True, cwd=tree) -- 2.30.2