Modern practice is to avoid multiple commands per line,
and instead place each command on its own line.
Signed-off-by: Charvi Mendiratta <charvi077@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Charvi Mendiratta4 years agocommitted byJunio C Hamano
@ -218,7 +223,8 @@ test_expect_success 'switch to another branch while carrying a deletion' '
@@ -218,7 +223,8 @@ test_expect_success 'switch to another branch while carrying a deletion' '
test_expect_success 'checkout to detach HEAD (with advice declined)' '
git config advice.detachedHead false &&
rev=$(git rev-parse --short renamer^) &&
git checkout -f renamer && git clean -f &&
git checkout -f renamer &&
git clean -f &&
git checkout renamer^ 2>messages &&
test_i18ngrep "HEAD is now at $rev" messages &&
test_line_count = 1 messages &&
@ -237,7 +243,8 @@ test_expect_success 'checkout to detach HEAD (with advice declined)' '
@@ -237,7 +243,8 @@ test_expect_success 'checkout to detach HEAD (with advice declined)' '
@ -269,7 +277,8 @@ test_expect_success 'checkout to detach HEAD with branchname^' '
@@ -269,7 +277,8 @@ test_expect_success 'checkout to detach HEAD with branchname^' '
'
test_expect_success 'checkout to detach HEAD with :/message' '
@ -284,7 +293,8 @@ test_expect_success 'checkout to detach HEAD with :/message' '
@@ -284,7 +293,8 @@ test_expect_success 'checkout to detach HEAD with :/message' '
'
test_expect_success 'checkout to detach HEAD with HEAD^0' '