list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* [Microproject] replaced test -f with test_path_is_file
@ 2020-08-17 17:18 Gopal Yadav
  0 siblings, 0 replies; only message in thread
From: Gopal Yadav @ 2020-08-17 17:18 UTC (permalink / raw)
  To: git replaced test -f with test_path_is_file

Signed-off-by: Gopal Yadav <>
I am new here, and thought of starting out by completing the microproject.

 t/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ b/t/
index 923281af93..eb99892a87 100755
--- a/t/
+++ b/t/
@@ -1191,7 +1191,7 @@ test_expect_success 'writing this tree with
--missing-ok' '
 test_expect_success 'git read-tree followed by write-tree should be
idempotent' '
     rm -f .git/index &&
     git read-tree $tree &&
-    test -f .git/index &&
+    test_path_is_file .git/index &&
     newtree=$(git write-tree) &&
     test "$newtree" = "$tree"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-17 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 17:18 [Microproject] replaced test -f with test_path_is_file Gopal Yadav list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ \
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

code repositories for project(s) associated with this inbox:

AGPL code for this site: git clone