From: Karl Hasselström Date: Thu, 20 Mar 2008 00:31:40 GMT Subject: [StGit PATCH 2/6] Make sure patches with no parents have an empty list of parents Message-ID: <20080320003140.13102.91209.stgit@yoghurt> In-Reply-To: <20080320002604.13102.53757.stgit@yoghurt> They used to have None instead of an empty list, which was inconsistent. (It went undetected for quite a while because StGit seldom needs to handle initial commits.) Signed-off-by: Karl Hasselström --- stgit/lib/git.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/stgit/lib/git.py b/stgit/lib/git.py index 50dc4f1..cdfe885 100644 --- a/stgit/lib/git.py +++ b/stgit/lib/git.py @@ -204,7 +204,7 @@ class Commitdata(Repr): ) % (tree, parents, self.author, self.committer, self.message) @classmethod def parse(cls, repository, s): - cd = cls() + cd = cls(parents = []) lines = list(s.splitlines(True)) for i in xrange(len(lines)): line = lines[i].strip()