From bae67b87039b3364bdc22b8ef0b75dd18261814c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 1 Dec 2009 09:24:52 +0100 Subject: commit.create_from_tree: head will not be advanced anymore as it feels non-natural when using it --- 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 bb458921..677aeebc 100644 --- a/lib/git/objects/commit.py +++ b/lib/git/objects/commit.py @@ -277,7 +277,7 @@ class Commit(base.Object, Iterable, diff.Diffable, utils.Traversable): @classmethod - def create_from_tree(cls, repo, tree, message, parent_commits=None, head=True ): + def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False): """ Commit the given tree, creating a commit object. -- cgit v1.2.1