diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 22:05:05 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 22:05:05 +0100 |
commit | b81273e70c9c31ae02cb0a2d6e697d7a4e2b683a (patch) | |
tree | 6921def19b0a0570237232b73ed124528e90d41e /objects/commit.py | |
parent | 968ffb2c2e5c6066a2b01ad2a0833c2800880d46 (diff) | |
download | gitpython-b81273e70c9c31ae02cb0a2d6e697d7a4e2b683a.tar.gz |
Adjusted remaining usages of set_reference and set_commit to set a logmessage
Diffstat (limited to 'objects/commit.py')
-rw-r--r-- | objects/commit.py | 2 |
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 |