From: Jeff King Date: Mon, 10 Aug 2015 09:32:30 +0000 (-0400) Subject: t5700: modernize style X-Git-Tag: v2.6.0-rc0~57^2~13 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bc192300c49a32e1ef297dc3fa78a101f28e2a4c?ds=inline;hp=bc192300c49a32e1ef297dc3fa78a101f28e2a4c t5700: modernize style The early part of this test is rather old, and does not follow our usual style guidelines. In particular: - the tests liberally chdir, and expect out-of-test "cd" commands to return them to a sane state - test commands aren't indented at all - there are a lot of minor formatting nits, like the opening quote of the test block on the wrong line, spaces after ">", etc This patch fixes the style issues, and uses a few helper functions, along with subshells and "git -C", to avoid changing the cwd of the main script. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---