From d9240918aa03e49feabe43af619019805ac76786 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 14 Jun 2010 12:48:28 +0200 Subject: tree: added TreeModifier, allowing to adjust existing trees safely and or fast, while staying compatible with serialization which requires it to be sorted --- lib/git/objects/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/objects/commit.py') diff --git a/lib/git/objects/commit.py b/lib/git/objects/commit.py index 0d8f2c64..3b20e314 100644 --- a/lib/git/objects/commit.py +++ b/lib/git/objects/commit.py @@ -402,7 +402,7 @@ class Commit(base.Object, Iterable, diff.Diffable, utils.Traversable, utils.Seri """:param from_rev_list: if true, the stream format is coming from the rev-list command Otherwise it is assumed to be a plain data stream from our object""" readline = stream.readline - self.tree = Tree(self.repo, readline().split()[1], 0, '') + self.tree = Tree(self.repo, readline().split()[1], Tree.tree_id<<12, '') self.parents = list() next_line = None -- cgit v1.2.1