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