From 96143d48f432d08be650ea69cbd56cb50988e855 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Thu, 19 Jan 2012 13:49:03 +0000 Subject: Document get_treeish() of the SourceManager. --- morphlib/git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'morphlib/git.py') diff --git a/morphlib/git.py b/morphlib/git.py index 7654e3bd..2cde8c55 100644 --- a/morphlib/git.py +++ b/morphlib/git.py @@ -70,8 +70,7 @@ class Treeish: try: binascii.unhexlify(ref) ex = morphlib.execute.Execute(self.repo, self.msg) - # TODO why is refs unused here? can we remove it? - refs = ex.runv(['git', 'rev-list', '--no-walk', ref]) + ex.runv(['git', 'rev-list', '--no-walk', ref]) self.sha1=ref except (TypeError, morphlib.execute.CommandFailure): raise InvalidTreeish(self.repo,ref) -- cgit v1.2.1