remove unused os.getcwd()
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 30 Mar 2013 22:34:09 +0000 (23:34 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 30 Mar 2013 22:34:23 +0000 (23:34 +0100)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
lib/git.py

index 888ca2777f17680405f4634505098855a3884514..38411e39993f8f094c84acd3119b7ef58c73eb26 100644 (file)
@@ -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)