Skip to content

Commit 7213080

Browse files
peffgitster
authored andcommitted
tests: shell negation portability fix
Commit 969c8775 introduced a test which uses the non-portable construct: command1 && ! command2 | command3 which must be command1 && ! (command2 | command3) to work on bsd shells (this is another example of bbf0812, which fixed several similar cases). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ed0a74 commit 7213080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4128-apply-root.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test_expect_success 'apply --directory (delete file)' '
7272
echo content >some/sub/dir/delfile &&
7373
git add some/sub/dir/delfile &&
7474
git apply --directory=some/sub/dir/ --index patch &&
75-
! git ls-files | grep delfile
75+
! (git ls-files | grep delfile)
7676
'
7777

7878
cat > patch << 'EOF'

0 commit comments

Comments
 (0)