summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 69a3adc4..fd4187b0 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -355,7 +355,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
# head is not yet set to the ref our HEAD points to
# Happens on first commit
import git.refs
- master = git.refs.Head.create(repo, repo.head.ref, commit=new_commit, logmsg="commit (initial): %s" % message)
+ master = git.refs.Head.create(repo, repo.head.ref, new_commit, logmsg="commit (initial): %s" % message)
repo.head.set_reference(master, logmsg='commit: Switching to %s' % master)
# END handle empty repositories
# END advance head handling