summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-06-22 13:28:10 +0530
committerJunio C Hamano <gitster@pobox.com>2013-06-23 00:14:33 -0700
commitfe3c1956e2289f083cf6777b3ff22fe628c92951 (patch)
treeb5782dca43d246e43c177a4137cebe8d8ea7f4d5
parent294547f5647688c6ee565811f9762a34e521e746 (diff)
downloadgit-fe3c1956e2289f083cf6777b3ff22fe628c92951.tar.gz
t/t5505-remote: use test_path_is_missing
Replace instances of ! test -f with test_path_is_missing. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t5505-remote.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index 7ae238b5e2..396a8133a7 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -747,7 +747,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/remotes' '
mkdir -p .git/remotes &&
cat ../remotes_origin >.git/remotes/origin &&
git remote rename origin origin &&
- ! test -f .git/remotes/origin &&
+ test_path_is_missing .git/remotes/origin &&
test "$(git config remote.origin.url)" = "$origin_url" &&
test "$(git config remote.origin.push)" = "refs/heads/master:refs/heads/upstream" &&
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' '
git remote rm origin &&
echo "$origin_url" >.git/branches/origin &&
git remote rename origin origin &&
- ! test -f .git/branches/origin &&
+ test_path_is_missing .git/branches/origin &&
test "$(git config remote.origin.url)" = "$origin_url" &&
test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" &&
test "$(git config remote.origin.push)" = "HEAD:refs/heads/master"