Skip to content

Commit eaed3e8

Browse files
committed
fixup! read-cache: add test for post-indexchanged hook
Ben implemented a short-cut for `git checkout -b` which avoids writing the index. Therefore, no hook would be called in that case. Let's force it do be called by using `-B` instead of `-b`.
1 parent d4b7d65 commit eaed3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7113-post-index-changed-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test_expect_success 'test checkout and reset trigger the hook' '
9696
git reset --hard &&
9797
test_path_is_file testsuccess && rm -f testsuccess &&
9898
test_path_is_missing testfailure &&
99-
git checkout -b test &&
99+
git checkout -B test &&
100100
test_path_is_file testsuccess && rm -f testsuccess &&
101101
test_path_is_missing testfailure
102102
'

0 commit comments

Comments
 (0)