Skip to content

Commit

Permalink
t/t1700-split-index.sh: mv -v is not portable
Browse files Browse the repository at this point in the history
The -v option for mv is not specified by POSIX.  The illumos
implementation of mv does not support -v.  Since we do not need the
verbose mv output we just drop -v for mv.

Signed-off-by: Marcel Telka <marcel@telka.sk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
mtelka authored and gitster committed May 17, 2024
1 parent 05e5ff0 commit 50acb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t1700-split-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ test_expect_success 'reading split index at alternate location' '
# ... and, for backwards compatibility, in the current GIT_DIR
# as well.
mv -v ./reading-alternate-location/.git/sharedindex.* .git &&
mv ./reading-alternate-location/.git/sharedindex.* .git &&
GIT_INDEX_FILE=./reading-alternate-location/.git/index \
git ls-files --cached >actual &&
test_cmp expect actual
Expand Down

0 comments on commit 50acb48

Please sign in to comment.