summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-10-19 16:05:58 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-10-19 16:05:58 -0700
commitce6e5ff435f325769dd28980cf3c8b1625f194f2 (patch)
treea903e06ed0f4cfb9fb1f8f484907baa57b7d2b0a /t
parentMerge branch 'maint' (diff)
parentrebase: Document --no-verify option to bypass pre-rebase hook (diff)
downloadtgif-ce6e5ff435f325769dd28980cf3c8b1625f194f2.tar.xz
Merge branch 'ns/rebase-noverify'
* ns/rebase-noverify: rebase: Document --no-verify option to bypass pre-rebase hook rebase --no-verify
Diffstat (limited to 't')
-rwxr-xr-xt/t3409-rebase-hook.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t3409-rebase-hook.sh b/t/t3409-rebase-hook.sh
index bc93dda8fd..1f1b850677 100755
--- a/t/t3409-rebase-hook.sh
+++ b/t/t3409-rebase-hook.sh
@@ -123,4 +123,20 @@ test_expect_success 'pre-rebase hook stops rebase (2)' '
test 0 = $(git rev-list HEAD...side | wc -l)
'
+test_expect_success 'rebase --no-verify overrides pre-rebase (1)' '
+ git checkout test &&
+ git reset --hard side &&
+ git rebase --no-verify master &&
+ test "z$(git symbolic-ref HEAD)" = zrefs/heads/test &&
+ test "z$(cat git)" = zworld
+'
+
+test_expect_success 'rebase --no-verify overrides pre-rebase (2)' '
+ git checkout test &&
+ git reset --hard side &&
+ EDITOR=true git rebase --no-verify -i master &&
+ test "z$(git symbolic-ref HEAD)" = zrefs/heads/test &&
+ test "z$(cat git)" = zworld
+'
+
test_done