@ -111,7 +111,7 @@ test_expect_success 'email with embedded > is not okay' '
@@ -111,7 +111,7 @@ test_expect_success 'email with embedded > is not okay' '
'
test_expect_success 'tag pointing to nonexistent' '
@ -40,7 +40,7 @@ extra1 line above used to cause a segfault but no longer does
@@ -40,7 +40,7 @@ extra1 line above used to cause a segfault but no longer does
EOF
test_expect_success 'test --parseopt help output' '
# "exec" commands are ran with the user shell by default, but this may
@ -82,20 +86,12 @@ test_expect_success 'rebase -i with the exec command' '
@@ -82,20 +86,12 @@ test_expect_success 'rebase -i with the exec command' '
test_path_is_file touch-one &&
test_path_is_file touch-two &&
test_path_is_missing touch-three " (should have stopped before)" &&
test $(git rev-parse C) = $(git rev-parse HEAD) || {
echo "Stopped at wrong revision:"
echo "($(git describe --tags HEAD) instead of C)"
false
} &&
test_cmp_rev C HEAD &&
git rebase --continue &&
test_path_is_file touch-three &&
test_path_is_file "touch-file name with spaces" &&
test_path_is_file touch-after-semicolon &&
test $(git rev-parse master) = $(git rev-parse HEAD) || {
echo "Stopped at wrong revision:"
echo "($(git describe --tags HEAD) instead of master)"
false
} &&
test_cmp_rev master HEAD &&
rm -f touch-*
'
@ -116,11 +112,7 @@ test_expect_success 'rebase -i with the exec command checks tree cleanness' '
@@ -116,11 +112,7 @@ test_expect_success 'rebase -i with the exec command checks tree cleanness' '
export FAKE_LINES &&
test_must_fail git rebase -i HEAD^
) &&
test $(git rev-parse master^) = $(git rev-parse HEAD) || {
echo "Stopped at wrong revision:"
echo "($(git describe --tags HEAD) instead of master^)"
false
} &&
test_cmp_rev master^ HEAD &&
git reset --hard &&
git rebase --continue
'
@ -584,7 +576,7 @@ test_expect_success 'do "noop" when there is nothing to cherry-pick' '
@@ -584,7 +576,7 @@ test_expect_success 'do "noop" when there is nothing to cherry-pick' '
git checkout -b branch4 HEAD &&
GIT_EDITOR=: git commit --amend \
--author="Somebody else <somebody@else.com>"
--author="Somebody else <somebody@else.com>" &&
test $(git rev-parse branch3) != $(git rev-parse branch4) &&
git rebase -i branch3 &&
test $(git rev-parse branch3) = $(git rev-parse branch4)
@ -599,7 +591,7 @@ test_expect_success 'submodule rebase setup' '
@@ -599,7 +591,7 @@ test_expect_success 'submodule rebase setup' '
@ -89,7 +89,7 @@ test_expect_success 'same, but do not remove trailing spaces' '
@@ -89,7 +89,7 @@ test_expect_success 'same, but do not remove trailing spaces' '
git config core.whitespace "-blank-at-eol" &&
git reset --hard HEAD^ &&
cp third file && git add file && git commit -m third &&
@ -330,7 +330,7 @@ test_expect_success 'check space before tab in indent (space-before-tab: on)' '
@@ -330,7 +330,7 @@ test_expect_success 'check space before tab in indent (space-before-tab: on)' '
test_expect_success 'check spaces as indentation (indent-with-non-tab: off)' '
@ -176,9 +176,8 @@ test_expect_success 'trailing whitespace & no newline at the end of file' '
@@ -176,9 +176,8 @@ test_expect_success 'trailing whitespace & no newline at the end of file' '
'
test_expect_success 'blank at EOF with --whitespace=fix (1)' '
@ -368,7 +367,7 @@ test_expect_success 'missing blanks at EOF must only match blank lines' '
@@ -368,7 +367,7 @@ test_expect_success 'missing blanks at EOF must only match blank lines' '
@ -419,7 +418,7 @@ test_expect_success 'same, but with CR-LF line endings && cr-at-eol set' '
@@ -419,7 +418,7 @@ test_expect_success 'same, but with CR-LF line endings && cr-at-eol set' '
printf "b\r\n" >>one &&
printf "c\r\n" >>one &&
cp one save-one &&
printf " \r\n" >>one
printf " \r\n" >>one &&
git add one &&
printf "d\r\n" >>one &&
cp one expect &&
@ -436,7 +435,7 @@ test_expect_success 'same, but with CR-LF line endings && cr-at-eol unset' '
@@ -436,7 +435,7 @@ test_expect_success 'same, but with CR-LF line endings && cr-at-eol unset' '
@ -31,7 +31,7 @@ test_expect_success 'apply same filename with independent changes' '
@@ -31,7 +31,7 @@ test_expect_success 'apply same filename with independent changes' '
'
test_expect_success 'apply same filename with overlapping changes' '
git reset --hard
git reset --hard &&
modify "s/^d/z/" same_fn &&
git diff > patch0 &&
git add same_fn &&
@ -44,8 +44,8 @@ test_expect_success 'apply same filename with overlapping changes' '
@@ -44,8 +44,8 @@ test_expect_success 'apply same filename with overlapping changes' '
'
test_expect_success 'apply same new filename after rename' '
git reset --hard
git mv same_fn new_fn
git reset --hard &&
git mv same_fn new_fn &&
modify "s/^d/z/" new_fn &&
git add new_fn &&
git diff -M --cached > patch1 &&
@ -58,12 +58,12 @@ test_expect_success 'apply same new filename after rename' '
@@ -58,12 +58,12 @@ test_expect_success 'apply same new filename after rename' '
'
test_expect_success 'apply same old filename after rename -- should fail.' '
git reset --hard
git mv same_fn new_fn
git reset --hard &&
git mv same_fn new_fn &&
modify "s/^d/z/" new_fn &&
git add new_fn &&
git diff -M --cached > patch1 &&
git mv new_fn same_fn
git mv new_fn same_fn &&
modify "s/^e/y/" same_fn &&
git diff >> patch1 &&
git reset --hard &&
@ -71,13 +71,13 @@ test_expect_success 'apply same old filename after rename -- should fail.' '
@@ -71,13 +71,13 @@ test_expect_success 'apply same old filename after rename -- should fail.' '
@ -191,7 +191,7 @@ test_expect_success 'git show <commits> leaves list of commits as given' '
@@ -191,7 +191,7 @@ test_expect_success 'git show <commits> leaves list of commits as given' '
test_expect_success 'setup case sensitivity tests' '
echo case >one &&
test_tick &&
git add one
git add one &&
git commit -a -m Second
'
@ -341,7 +341,7 @@ test_expect_success 'set up more tangled history' '
@@ -341,7 +341,7 @@ test_expect_success 'set up more tangled history' '
test_commit octopus-b &&
git checkout master &&
test_commit seventh &&
git merge octopus-a octopus-b
git merge octopus-a octopus-b &&
git merge reach
'
@ -393,7 +393,7 @@ test_expect_success 'log --graph with merge' '
@@ -393,7 +393,7 @@ test_expect_success 'log --graph with merge' '
@ -8,7 +8,7 @@ test_description='pack index with 64-bit offsets and object CRC'
@@ -8,7 +8,7 @@ test_description='pack index with 64-bit offsets and object CRC'
@ -57,7 +57,7 @@ test_expect_success 'copy commit and tree but not blob by hand' '
@@ -57,7 +57,7 @@ test_expect_success 'copy commit and tree but not blob by hand' '
cd cloned &&
git count-objects | sed -e "s/ *objects,.*//"
) ) &&
test $cnt -eq 6
test $cnt -eq 6 &&
blob=$(git rev-parse HEAD:file | sed -e "s|..|&/|") &&
@ -119,7 +119,7 @@ test_expect_success 'fetch must not resolve short tag name' '
@@ -119,7 +119,7 @@ test_expect_success 'fetch must not resolve short tag name' '
test_expect_success 'fetch must not resolve short remote name' '
test_expect_success 'warn on push to HEAD of non-bare repository' '
mk_test heads/master
mk_test heads/master &&
(
cd testrepo &&
git checkout master &&
@ -597,7 +597,7 @@ test_expect_success 'warn on push to HEAD of non-bare repository' '
@@ -597,7 +597,7 @@ test_expect_success 'warn on push to HEAD of non-bare repository' '
'
test_expect_success 'deny push to HEAD of non-bare repository' '
mk_test heads/master
mk_test heads/master &&
(
cd testrepo &&
git checkout master &&
@ -607,7 +607,7 @@ test_expect_success 'deny push to HEAD of non-bare repository' '
@@ -607,7 +607,7 @@ test_expect_success 'deny push to HEAD of non-bare repository' '
'
test_expect_success 'allow push to HEAD of bare repository (bare)' '
mk_test heads/master
mk_test heads/master &&
(
cd testrepo &&
git checkout master &&
@ -619,7 +619,7 @@ test_expect_success 'allow push to HEAD of bare repository (bare)' '
@@ -619,7 +619,7 @@ test_expect_success 'allow push to HEAD of bare repository (bare)' '
'
test_expect_success 'allow push to HEAD of non-bare repository (config)' '
'checking -f on untracked file with existing target' \
'touch path0/untracked1 &&
git mv -f untracked1 path0
test_must_fail git mv -f untracked1 path0 &&
test ! -f .git/index.lock &&
test -f untracked1 &&
test -f path0/untracked1'
@ -207,7 +207,7 @@ test_expect_success 'git mv should not change sha1 of moved cache entry' '
@@ -207,7 +207,7 @@ test_expect_success 'git mv should not change sha1 of moved cache entry' '
@ -40,7 +40,7 @@ test_expect_success '-C option copies only the message with --reset-author' '
@@ -40,7 +40,7 @@ test_expect_success '-C option copies only the message with --reset-author' '
@ -129,13 +129,13 @@ test_expect_success 'merge picks up the best result' '
@@ -129,13 +129,13 @@ test_expect_success 'merge picks up the best result' '
test_expect_success 'merge picks up the best result (from config)' '