Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/t5505-remote: use test_path_is_missing
author
Ramkumar Ramachandra
<artagnon@gmail.com>
Sat, 22 Jun 2013 07:58:10 +0000
(13:28 +0530)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 23 Jun 2013 07:14:33 +0000
(
00:14
-0700)
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>
t/t5505-remote.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
294547f
)
diff --git
a/t/t5505-remote.sh
b/t/t5505-remote.sh
index 7ae238b5e26353a040a30e416752493d9c8ed583..396a8133a780ffa3538008bb72a5c29c25495cc2 100755
(executable)
--- 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 &&
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"
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 &&
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"
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"