]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5505-remote.sh
remote show: do not show symbolic refs
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 19 Mar 2008 00:27:42 +0000 (00:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Mar 2008 00:33:30 +0000 (17:33 -0700)
commit740fdd27f0888d5c80ef6a550734bdc53febd2df
tree756cad7b6c49779627d2a08f4e1140835ab82643
parenta811e4f0f023d88596adbf39674a18d34b2f152d
remote show: do not show symbolic refs

For symbolic refs, a sane notion of being "stale" is that the ref
they point to no longer exists.  Since this is checked already,
"remote show" does not need to show them at all.

Incidentally, this fixes the issue that "HEAD" was shown as a
stale ref by "remote show" in a freshly cloned repository.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c
t/t5505-remote.sh