summaryrefslogtreecommitdiff
path: root/t/t3400-rebase.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-03-03 17:11:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-04 04:31:04 (GMT)
commitcbd29ead92d8555f2b918c7f9d53913f26f7a872 (patch)
tree1e6d2a159a19144c4e39f6d86427626e9692f1ff /t/t3400-rebase.sh
parentc2d96293602bf6e8ffa1002cff8cb6faa3854815 (diff)
downloadgit-cbd29ead92d8555f2b918c7f9d53913f26f7a872.zip
git-cbd29ead92d8555f2b918c7f9d53913f26f7a872.tar.gz
git-cbd29ead92d8555f2b918c7f9d53913f26f7a872.tar.bz2
built-in rebase: set ORIG_HEAD just once, before the rebase
Technically, the scripted version set ORIG_HEAD only in two spots (which really could have been one, because it called `git checkout $onto^0` to start the rebase and also if it could take a shortcut, and in both cases it called `git update-ref $orig_head`). Practically, it *implicitly* reset ORIG_HEAD whenever `git reset --hard` was called. However, what we really want is that it is set exactly once, at the beginning of the rebase. So let's do that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3400-rebase.sh')
-rwxr-xr-xt/t3400-rebase.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh
index 7e8d5bb..460d052 100755
--- a/t/t3400-rebase.sh
+++ b/t/t3400-rebase.sh
@@ -59,7 +59,7 @@ test_expect_success 'rebase against master' '
git rebase master
'
-test_expect_failure 'rebase sets ORIG_HEAD to pre-rebase state' '
+test_expect_success 'rebase sets ORIG_HEAD to pre-rebase state' '
git checkout -b orig-head topic &&
pre="$(git rev-parse --verify HEAD)" &&
git rebase master &&