t0050: Use TAB for indentation

Use one TAB for indentation and remove empty lines

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Torsten Bögershausen 2013-01-21 17:46:31 +01:00 committed by Junio C Hamano
parent 4084475b20
commit 336e2e27bd
1 changed files with 15 additions and 33 deletions

View File

@ -29,12 +29,10 @@ test_have_prereq SYMLINKS ||
if test_have_prereq CASE_INSENSITIVE_FS if test_have_prereq CASE_INSENSITIVE_FS
then then
test_expect_success "detection of case insensitive filesystem during repo init" ' test_expect_success "detection of case insensitive filesystem during repo init" '

test $(git config --bool core.ignorecase) = true test $(git config --bool core.ignorecase) = true
' '
else else
test_expect_success "detection of case insensitive filesystem during repo init" ' test_expect_success "detection of case insensitive filesystem during repo init" '

test_must_fail git config --bool core.ignorecase >/dev/null || test_must_fail git config --bool core.ignorecase >/dev/null ||
test $(git config --bool core.ignorecase) = false test $(git config --bool core.ignorecase) = false
' '
@ -43,20 +41,17 @@ fi
if test_have_prereq SYMLINKS if test_have_prereq SYMLINKS
then then
test_expect_success "detection of filesystem w/o symlink support during repo init" ' test_expect_success "detection of filesystem w/o symlink support during repo init" '

test_must_fail git config --bool core.symlinks || test_must_fail git config --bool core.symlinks ||
test "$(git config --bool core.symlinks)" = true test "$(git config --bool core.symlinks)" = true
' '
else else
test_expect_success "detection of filesystem w/o symlink support during repo init" ' test_expect_success "detection of filesystem w/o symlink support during repo init" '

v=$(git config --bool core.symlinks) && v=$(git config --bool core.symlinks) &&
test "$v" = false test "$v" = false
' '
fi fi


test_expect_success "setup case tests" ' test_expect_success "setup case tests" '

git config core.ignorecase true && git config core.ignorecase true &&
touch camelcase && touch camelcase &&
git add camelcase && git add camelcase &&
@ -67,29 +62,23 @@ test_expect_success "setup case tests" '
git mv tmp CamelCase && git mv tmp CamelCase &&
git commit -m "rename" && git commit -m "rename" &&
git checkout -f master git checkout -f master

' '


$test_case 'rename (case change)' ' $test_case 'rename (case change)' '

git mv camelcase CamelCase && git mv camelcase CamelCase &&
git commit -m "rename" git commit -m "rename"

' '


test_expect_success 'merge (case change)' ' test_expect_success 'merge (case change)' '

rm -f CamelCase && rm -f CamelCase &&
rm -f camelcase && rm -f camelcase &&
git reset --hard initial && git reset --hard initial &&
git merge topic git merge topic

' '






test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' ' test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' '

git reset --hard initial && git reset --hard initial &&
rm camelcase && rm camelcase &&
echo 1 >CamelCase && echo 1 >CamelCase &&
@ -97,11 +86,9 @@ test_expect_failure CASE_INSENSITIVE_FS 'add (with different case)' '
camel=$(git ls-files | grep -i camelcase) && camel=$(git ls-files | grep -i camelcase) &&
test $(echo "$camel" | wc -l) = 1 && test $(echo "$camel" | wc -l) = 1 &&
test "z$(git cat-file blob :$camel)" = z1 test "z$(git cat-file blob :$camel)" = z1

' '


test_expect_success "setup unicode normalization tests" ' test_expect_success "setup unicode normalization tests" '

test_create_repo unicode && test_create_repo unicode &&
cd unicode && cd unicode &&
touch "$aumlcdiar" && touch "$aumlcdiar" &&
@ -113,21 +100,16 @@ test_expect_success "setup unicode normalization tests" '
git mv tmp "$auml" && git mv tmp "$auml" &&
git commit -m rename && git commit -m rename &&
git checkout -f master git checkout -f master

' '


$test_unicode 'rename (silent unicode normalization)' ' $test_unicode 'rename (silent unicode normalization)' '

git mv "$aumlcdiar" "$auml" && git mv "$aumlcdiar" "$auml" &&
git commit -m rename git commit -m rename

' '


$test_unicode 'merge (silent unicode normalization)' ' $test_unicode 'merge (silent unicode normalization)' '

git reset --hard initial && git reset --hard initial &&
git merge topic git merge topic

' '


test_done test_done