diff options
author | Chenxiong Qi <qcxhome@gmail.com> | 2020-02-24 19:36:54 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-24 20:03:04 +0800 |
commit | d7b401e0aa9dbb1a7543dde46064b24a5450db19 (patch) | |
tree | 92d5c2f5aa5ba3e828e7d9e1d975aace028bfc9f /git/repo/base.py | |
parent | 8c9da7310eb6adf67fa8d35821ba500dffd9a2a7 (diff) | |
download | gitpython-d7b401e0aa9dbb1a7543dde46064b24a5450db19.tar.gz |
Fix param format of Repo.commit
Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index df0c3eaa..feb5934f 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -471,8 +471,10 @@ class Repo(object): def commit(self, rev=None): """The Commit object for the specified revision + :param rev: revision specifier, see git-rev-parse for viable options. - :return: ``git.Commit``""" + :return: ``git.Commit`` + """ if rev is None: return self.head.commit return self.rev_parse(str(rev) + "^0") |