[PATCH 01/16] t/t5505-remote: modernize subshell-style of one test
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 21, 2013, 11:12 UTC
- Message-ID
- <1371813160-4200-2-git-send-email-artagnon@gmail.com>
- In-Reply-To
- <1371813160-4200-1-git-send-email-artagnon@gmail.com>
Since we plan to edit the test "migrate a remote from named file in $GIT_DIR/remotes" in later patches, modernize the subshell-style by putting the parenthesis on separate lines and indenting the body.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> --- t/t5505-remote.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index dd10ff0..4d5810f 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -691,13 +691,15 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/remotes' ' test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' ' git clone one six && origin_url=$(pwd)/one && - (cd six && - git remote rm origin && - echo "$origin_url" > .git/branches/origin && - git remote rename origin origin && - ! test -f .git/branches/origin && - test "$(git config remote.origin.url)" = "$origin_url" && - test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin") + ( + cd six && + git remote rm origin && + echo "$origin_url" > .git/branches/origin && + git remote rename origin origin && + ! test -f .git/branches/origin && + test "$(git config remote.origin.url)" = "$origin_url" && + test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" + ) ' test_expect_success 'remote prune to cause a dangling symref' '
-- 1.8.3.1.499.g7ad3486.dirty