Skip to content

Commit 41ca06d

Browse files
Returning commit object instead of hash value
1 parent 8faf525 commit 41ca06d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/repo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,11 @@ def __repr__(self):
10641064

10651065
def currently_rebasing_on(self):
10661066
"""
1067-
:return: The hash of the commit which is currently being replayed while rebasing.
1067+
:return: The commit which is currently being replayed while rebasing.
10681068
10691069
None if we are not currently rebasing.
10701070
"""
10711071
rebase_head_file = osp.join(self.git_dir, "REBASE_HEAD")
10721072
if not osp.isfile(rebase_head_file):
10731073
return None
1074-
return open(rebase_head_file, "rt").readline().strip()
1074+
return self.commit(open(rebase_head_file, "rt").readline().strip())

0 commit comments

Comments
 (0)