*.sh: drop useless use of "env"
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Mar 2014 23:22:34 +0000 (15:22 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Mar 2014 23:22:34 +0000 (15:22 -0800)
In a bourne shell script, "VAR=VAL command" is sufficient to run
'command' with environment variable VAR set to value VAL without
affecting the environment of the shell itself; there is no need
to say "env VAR=VAL command".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1020-subdirectory.sh
t/t9001-send-email.sh
index 1e2945ec7e397cf6b2e3b00bee0ca1df40a0e6a9..6902320e819651553beac7d80971b984b9168a8a 100755 (executable)
@@ -148,7 +148,7 @@ test_expect_success 'GIT_PREFIX for built-ins' '
        (
                cd dir &&
                printf "change" >two &&
-               env GIT_EXTERNAL_DIFF=./diff git diff >../actual
+               GIT_EXTERNAL_DIFF=./diff git diff >../actual
                git checkout -- two
        ) &&
        test_cmp expect actual
index 3119c8c523168922d42448ffbd1ee4c9647b0567..1ecdacb6fd0ceb7e43e6ec3bad018e7b6dc8100b 100755 (executable)
@@ -409,7 +409,7 @@ test_expect_success $PREREQ 'Valid In-Reply-To when prompting' '
        (echo "From Example <from@example.com>"
         echo "To Example <to@example.com>"
         echo ""
-       ) | env GIT_SEND_EMAIL_NOTTY=1 git send-email \
+       ) | GIT_SEND_EMAIL_NOTTY=1 git send-email \
                --smtp-server="$(pwd)/fake.sendmail" \
                $patches 2>errors &&
        ! grep "^In-Reply-To: < *>" msgtxt1