t5505: use "for-each-ref" to test for the non-existence of references
authorMichael Haggerty <redacted>
Fri, 6 Jan 2017 16:22:23 +0000 (17:22 +0100)
committerJunio C Hamano <redacted>
Sun, 8 Jan 2017 03:30:08 +0000 (19:30 -0800)
commit2eb7a0e5e439f4249cd758ca728d5f054fa540bd
tree6206b363bb8e7370c283541f53c88f8dc3273ea8
parent15ee2c72e76fa79e957990b43277a4591371e70e
t5505: use "for-each-ref" to test for the non-existence of references

Instead of looking on the filesystem inside ".git/refs/remotes/origin",
use "git for-each-ref" to check for leftover references under the
remote's old name.

Signed-off-by: Michael Haggerty <redacted>
Reviewed-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t5505-remote.sh
git clone https://git.99rst.org/PROJECT