We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8faf525 commit 41ca06dCopy full SHA for 41ca06d
git/repo/base.py
@@ -1064,11 +1064,11 @@ def __repr__(self):
1064
1065
def currently_rebasing_on(self):
1066
"""
1067
- :return: The hash of the commit which is currently being replayed while rebasing.
+ :return: The commit which is currently being replayed while rebasing.
1068
1069
None if we are not currently rebasing.
1070
1071
rebase_head_file = osp.join(self.git_dir, "REBASE_HEAD")
1072
if not osp.isfile(rebase_head_file):
1073
return None
1074
- return open(rebase_head_file, "rt").readline().strip()
+ return self.commit(open(rebase_head_file, "rt").readline().strip())
0 commit comments