From: Johannes Berg Date: Sat, 30 Mar 2013 22:34:09 +0000 (+0100) Subject: remove unused os.getcwd() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=01c8a0764891c983a240be67d95b5b79b8c94a00;p=openwrt%2Fstaging%2Fblogic.git remove unused os.getcwd() Signed-off-by: Johannes Berg --- 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)