threads / patch / 61497

patcht/t0600-reffiles-backend.sh: rm -v is not portable

Subject: [PATCH] t/t0600-reffiles-backend.sh: rm -v is not portable

## tl;dr

One message between May 17, 2024 and May 17, 2024. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Marcel Telka· May 17, 2024, 13:19 UTC · lore

The -v option for rm is not specified by POSIX. The illumos implementation of rm does not support -v. Since we do not need the verbose rm output we just drop -v for rm.

Signed-off-by: Marcel Telka <marcel@telka.sk>
---
 t/t0600-reffiles-backend.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to t/t0600-reffiles-backend.sh +1 −1
diff --git a/t/t0600-reffiles-backend.sh b/t/t0600-reffiles-backend.sh
index a390cffc80..92f570313d 100755
--- a/t/t0600-reffiles-backend.sh
+++ b/t/t0600-reffiles-backend.sh
@@ -424,7 +424,7 @@ test_expect_success SYMLINKS 'git branch -m with symlinked .git/refs' '
 	test_when_finished "rm -rf subdir" &&
 	git init --bare subdir &&
 
-	rm -rfv subdir/refs subdir/objects subdir/packed-refs &&
+	rm -rf subdir/refs subdir/objects subdir/packed-refs &&
 	ln -s ../.git/refs subdir/refs &&
 	ln -s ../.git/objects subdir/objects &&
 	ln -s ../.git/packed-refs subdir/packed-refs &&

← back to recent threads