Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit fe3c195

Browse files
artagnongitster
authored andcommitted
t/t5505-remote: use test_path_is_missing
Replace instances of ! test -f with test_path_is_missing. Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 294547f commit fe3c195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5505-remote.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/remotes' '
747747
mkdir -p .git/remotes &&
748748
cat ../remotes_origin >.git/remotes/origin &&
749749
git remote rename origin origin &&
750-
! test -f .git/remotes/origin &&
750+
test_path_is_missing .git/remotes/origin &&
751751
test "$(git config remote.origin.url)" = "$origin_url" &&
752752
test "$(git config remote.origin.push)" = "refs/heads/master:refs/heads/upstream" &&
753753
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin"
@@ -762,7 +762,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' '
762762
git remote rm origin &&
763763
echo "$origin_url" >.git/branches/origin &&
764764
git remote rename origin origin &&
765-
! test -f .git/branches/origin &&
765+
test_path_is_missing .git/branches/origin &&
766766
test "$(git config remote.origin.url)" = "$origin_url" &&
767767
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" &&
768768
test "$(git config remote.origin.push)" = "HEAD:refs/heads/master"

0 commit comments

Comments
 (0)