Skip to content

Commit 36e74ab

Browse files
committed
Merge branch 'pb/send-email-cccmd-fix'
* pb/send-email-cccmd-fix: t/t9001-send-email.sh: ensure generated script is executed with $SHELL_PATH
2 parents 2dc7f40 + 977e289 commit 36e74ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t9001-send-email.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ test_expect_success 'cccmd works' '
152152
clean_fake_sendmail &&
153153
cp $patches cccmd.patch &&
154154
echo [email protected] >>cccmd.patch &&
155-
echo sed -n s/^cccmd--//p \"\$1\" > cccmd-sed &&
155+
{
156+
echo "#!$SHELL_PATH"
157+
echo sed -n -e s/^cccmd--//p \"\$1\"
158+
} > cccmd-sed &&
156159
chmod +x cccmd-sed &&
157160
git send-email \
158161
--from="Example <[email protected]>" \

0 commit comments

Comments
 (0)