@@ -7,19 +7,19 @@ test_description='Test the post-checkout hook.'
77. ./test-lib.sh
88
99test_expect_success setup '
10- echo Data for commit0. >a &&
11- echo Data for commit0. >b &&
12- git update-index --add a &&
13- git update-index --add b &&
14- tree0=$(git write-tree) &&
15- commit0=$(echo setup | git commit-tree $tree0) &&
16- git update-ref refs/heads/master $commit0 &&
17- git clone ./. clone1 &&
18- git clone ./. clone2 &&
19- GIT_DIR=clone2/.git git branch -a new2 &&
20- echo Data for commit1. >clone2/b &&
21- GIT_DIR=clone2/.git git add clone2/b &&
22- GIT_DIR=clone2/.git git commit -m new2
10+ echo Data for commit0. >a &&
11+ echo Data for commit0. >b &&
12+ git update-index --add a &&
13+ git update-index --add b &&
14+ tree0=$(git write-tree) &&
15+ commit0=$(echo setup | git commit-tree $tree0) &&
16+ git update-ref refs/heads/master $commit0 &&
17+ git clone ./. clone1 &&
18+ git clone ./. clone2 &&
19+ GIT_DIR=clone2/.git git branch new2 &&
20+ echo Data for commit1. >clone2/b &&
21+ GIT_DIR=clone2/.git git add clone2/b &&
22+ GIT_DIR=clone2/.git git commit -m new2
2323'
2424
2525for clone in 1 2; do
0 commit comments