Skip to content

Commit 0acbf59

Browse files
luked99gitster
authored andcommitted
git-p4: use HEAD~$n to find parent commit for unshelve
Found-by: Liu Xuhui (Jackson) <[email protected]> Signed-off-by: Luke Diamand <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 677fa8d commit 0acbf59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-p4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4237,7 +4237,7 @@ def findLastP4Revision(self, starting_point):
42374237
"""
42384238

42394239
for parent in (range(65535)):
4240-
log = extractLogMessageFromGitCommit("{0}^{1}".format(starting_point, parent))
4240+
log = extractLogMessageFromGitCommit("{0}~{1}".format(starting_point, parent))
42414241
settings = extractSettingsGitLog(log)
42424242
if 'change' in settings:
42434243
return settings

t/t9832-unshelve.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ EOF
8080
)
8181
'
8282

83-
test_expect_failure 'update shelved changelist and re-unshelve' '
83+
test_expect_success 'update shelved changelist and re-unshelve' '
8484
test_when_finished cleanup_git &&
8585
(
8686
cd "$cli" &&

0 commit comments

Comments
 (0)