Skip to content

Commit a604572

Browse files
pcloudsgitster
authored andcommitted
t5403: convert leading spaces to tabs
The first and last tests use tabs. The rest uses spaces. Convert all to tabs. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8b0e15f commit a604572

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

t/t5403-post-checkout-hook.sh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,44 @@ EOF
3131
done
3232

3333
test_expect_success 'post-checkout runs as expected ' '
34-
GIT_DIR=clone1/.git git checkout master &&
35-
test -e clone1/.git/post-checkout.args
34+
GIT_DIR=clone1/.git git checkout master &&
35+
test -e clone1/.git/post-checkout.args
3636
'
3737

3838
test_expect_success 'post-checkout receives the right arguments with HEAD unchanged ' '
39-
old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
40-
new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
41-
flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
42-
test $old = $new -a $flag = 1
39+
old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
40+
new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
41+
flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
42+
test $old = $new -a $flag = 1
4343
'
4444

4545
test_expect_success 'post-checkout runs as expected ' '
46-
GIT_DIR=clone1/.git git checkout master &&
47-
test -e clone1/.git/post-checkout.args
46+
GIT_DIR=clone1/.git git checkout master &&
47+
test -e clone1/.git/post-checkout.args
4848
'
4949

5050
test_expect_success 'post-checkout args are correct with git checkout -b ' '
51-
GIT_DIR=clone1/.git git checkout -b new1 &&
52-
old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
53-
new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
54-
flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
55-
test $old = $new -a $flag = 1
51+
GIT_DIR=clone1/.git git checkout -b new1 &&
52+
old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
53+
new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
54+
flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
55+
test $old = $new -a $flag = 1
5656
'
5757

5858
test_expect_success 'post-checkout receives the right args with HEAD changed ' '
59-
GIT_DIR=clone2/.git git checkout new2 &&
60-
old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
61-
new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
62-
flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
63-
test $old != $new -a $flag = 1
59+
GIT_DIR=clone2/.git git checkout new2 &&
60+
old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
61+
new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
62+
flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
63+
test $old != $new -a $flag = 1
6464
'
6565

6666
test_expect_success 'post-checkout receives the right args when not switching branches ' '
67-
GIT_DIR=clone2/.git git checkout master b &&
68-
old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
69-
new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
70-
flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
71-
test $old = $new -a $flag = 0
67+
GIT_DIR=clone2/.git git checkout master b &&
68+
old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
69+
new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
70+
flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
71+
test $old = $new -a $flag = 0
7272
'
7373

7474
if test "$(git config --bool core.filemode)" = true; then

0 commit comments

Comments
 (0)