t5521: fix and modernize
commit13e65fe6314bf44e64f22b9b66a4e5940adaa2e5
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Feb 2010 18:22:05 +0000 (24 10:22 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Feb 2010 18:41:12 +0000 (24 10:41 -0800)
tree47b6bd1f7f28c22679ac5cc10e0bb668ee65789d
parente923eaeb901ff056421b9007adcbbce271caa7b6
t5521: fix and modernize

All of these tests were bogus, as they created new directory and tried to
run "git pull" without even running "git init" in there.  They were mucking
with the repository in $TEST_DIRECTORY.

While fixing it, modernize the style not to chdir around outside of
subshell.  Otherwise a failed test will take us to an unexpected directory
and we need to chdir back to the test directory in each test, which is
ugly and error prone.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5521-pull-options.sh