Skip to content

Commit 4bebfe3

Browse files
Arthur-MilchiorByron
authored andcommitted
Returning commit object instead of hash value
1 parent 87b5d9c commit 4bebfe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/repo/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ def __repr__(self):
10651065

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

0 commit comments

Comments
 (0)