summaryrefslogtreecommitdiff
path: root/t/t7811-grep-open.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t7811-grep-open.sh')
-rwxr-xr-xt/t7811-grep-open.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t7811-grep-open.sh b/t/t7811-grep-open.sh
index 8db4fc8b10..2e5c701566 100755
--- a/t/t7811-grep-open.sh
+++ b/t/t7811-grep-open.sh
@@ -84,10 +84,11 @@ test_expect_success 'git grep -O --no-index' '
'
test_expect_success 'setup: fake "less"' '
- cat >less <<-\EOF
+ cat >less <<-\EOF &&
#!/bin/sh
printf "%s\n" "$@" >actual
EOF
+ chmod +x less
'
test_expect_success 'git grep -O jumps to line in less' '