diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-08-24 17:20:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 23:07:32 +0200 |
commit | 4a3ed638027343cbfc47821973c2c3784a5c53ed (patch) | |
tree | d4bb506bba995afb006307344284a8d81bbaa2c3 /t/t5318-commit-graph.sh | |
parent | tests: fix version-specific portability issue in Perl JSON (diff) | |
download | git-4a3ed638027343cbfc47821973c2c3784a5c53ed.tar.xz git-4a3ed638027343cbfc47821973c2c3784a5c53ed.zip |
tests: fix and add lint for non-portable grep --file
The --file option to grep isn't in POSIX[1], but -f is[1]. Let's check
for that in the future, and fix the portability regression in
f237c8b6fe ("commit-graph: implement git-commit-graph write",
2018-04-02) that broke e.g. AIX.
1. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5318-commit-graph.sh')
-rwxr-xr-x | t/t5318-commit-graph.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index 3c1ffad491..0c500f7ca2 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -134,7 +134,7 @@ test_expect_success 'Add one more commit' ' git branch commits/8 && ls $objdir/pack | grep idx >existing-idx && git repack && - ls $objdir/pack| grep idx | grep -v --file=existing-idx >new-idx + ls $objdir/pack| grep idx | grep -v -f existing-idx >new-idx ' # Current graph structure: |