summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-14 07:35:44 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-14 07:35:44 -0800
commit37ad7ca7dbb0bef2b902f6bc7d3346ddff1667a5 (patch)
tree22fec01c1e15f007c681b68cc217688e1002f5f3 /t
parentMerge branch 'mz/maint-rebase-stat-config' into maint (diff)
parentrebase --abort: do not update branch ref (diff)
downloadtgif-37ad7ca7dbb0bef2b902f6bc7d3346ddff1667a5.tar.xz
Merge branch 'mz/rebase-abort-reflog-fix' into maint
* mz/rebase-abort-reflog-fix: rebase --abort: do not update branch ref
Diffstat (limited to 't')
-rwxr-xr-xt/t3407-rebase-abort.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t3407-rebase-abort.sh b/t/t3407-rebase-abort.sh
index fbb3f2e0df..e573dc845b 100755
--- a/t/t3407-rebase-abort.sh
+++ b/t/t3407-rebase-abort.sh
@@ -72,6 +72,18 @@ testrebase() {
test $(git rev-parse to-rebase) = $(git rev-parse pre-rebase) &&
test ! -d "$dotest"
'
+
+ test_expect_success "rebase$type --abort does not update reflog" '
+ cd "$work_dir" &&
+ # Clean up the state from the previous one
+ git reset --hard pre-rebase &&
+ git reflog show to-rebase > reflog_before &&
+ test_must_fail git rebase$type master &&
+ git rebase --abort &&
+ git reflog show to-rebase > reflog_after &&
+ test_cmp reflog_before reflog_after &&
+ rm reflog_before reflog_after
+ '
}
testrebase "" .git/rebase-apply