Skip to content

Commit 6eca18c

Browse files
committed
*.sh: drop useless use of "env"
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 <[email protected]>
1 parent 7bbc4e8 commit 6eca18c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/t1020-subdirectory.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ test_expect_success 'GIT_PREFIX for built-ins' '
148148
(
149149
cd dir &&
150150
printf "change" >two &&
151-
env GIT_EXTERNAL_DIFF=./diff git diff >../actual
151+
GIT_EXTERNAL_DIFF=./diff git diff >../actual
152152
git checkout -- two
153153
) &&
154154
test_cmp expect actual

t/t9001-send-email.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ test_expect_success $PREREQ 'Valid In-Reply-To when prompting' '
409409
(echo "From Example <[email protected]>"
410410
echo "To Example <[email protected]>"
411411
echo ""
412-
) | env GIT_SEND_EMAIL_NOTTY=1 git send-email \
412+
) | GIT_SEND_EMAIL_NOTTY=1 git send-email \
413413
--smtp-server="$(pwd)/fake.sendmail" \
414414
$patches 2>errors &&
415415
! grep "^In-Reply-To: < *>" msgtxt1

0 commit comments

Comments
 (0)