diff options
Diffstat (limited to 'git/refs/reference.py')
-rw-r--r-- | git/refs/reference.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py index 8741ebb9..3e132aef 100644 --- a/git/refs/reference.py +++ b/git/refs/reference.py @@ -51,7 +51,8 @@ class Reference(SymbolicReference, LazyMixin, Iterable): #{ Interface def set_object(self, object, logmsg=None): - """Special version which checks if the head-log needs an update as well""" + """Special version which checks if the head-log needs an update as well + :return: self""" oldbinsha = None if logmsg is not None: head = self.repo.head @@ -78,6 +79,8 @@ class Reference(SymbolicReference, LazyMixin, Iterable): self.repo.head.log_append(oldbinsha, logmsg) # END check if the head + return self + # NOTE: Don't have to overwrite properties as the will only work without a the log @property |