t5505: use "for-each-ref" to test for the non-existence of references
commit2eb7a0e5e439f4249cd758ca728d5f054fa540bd
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2017 16:22:23 +0000 (6 17:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2017 03:30:08 +0000 (7 19:30 -0800)
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 <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5505-remote.sh