Skip to content

Commit 2dfc087

Browse files
committed
t0081: modernize the code testing whether a file exists
Replace the old-style shell `test -f` command with Git's modern `test_path_is_file`. Signed-off-by: Shashank <shashu8660@gmail.com>
1 parent 6de20f6 commit 2dfc087

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎t/t0081-find-pack.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test_expect_success 'repack everything into a single packfile' '
3232
".git/objects/pack/pack-"*".pack") true ;;
3333
*) false ;;
3434
esac &&
35-
test -f "$head_commit_pack" &&
35+
test_path_is_file "$head_commit_pack" &&
3636
3737
# Everything is in the same pack
3838
test "$head_commit_pack" = "$head_tree_pack" &&

0 commit comments

Comments
 (0)