Re: [PATCH] t3200 (branch): modernize style
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2013, 20:43 UTC
- Message-ID
- <7vwqt1dcp1.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1363782612-19260-1-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> Another random patch. Found it while grep'ping around. I thought I > could automate my work, which would have been the case if it was > consistently inconsistent. Unfortunately, it wasn't, and I ended up > doing a lot of manual janitorial work :|
Thanks. It would have been nicer to also fix the redirection, e.g. "cmd >target" (not "cmd > target") that appear in the first hunk, i.e. this on top (I'll squash this in myself).
t/t3200-branch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 3203b15..74fbba1 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -8,10 +8,10 @@ test_description='git branch assorted tests' . ./test-lib.sh test_expect_success 'prepare a trivial repository' ' - echo Hello > A && + echo Hello >A && git update-index --add A && git commit -m "Initial commit." && - echo World >> A && + echo World >>A && git update-index --add A && git commit -m "Second commit." && HEAD=$(git rev-parse --verify HEAD)' @@ -750,7 +750,7 @@ test_expect_success 'detect misconfigured autosetuprebase (bad value)' ' test_expect_success 'detect misconfigured autosetuprebase (no value)' ' git config --unset branch.autosetuprebase && - echo "[branch] autosetuprebase" >> .git/config && + echo "[branch] autosetuprebase" >>.git/config && test_must_fail git branch && git config --unset branch.autosetuprebase '