diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-03-19 00:27:42 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-19 17:33:30 -0700 |
commit | 740fdd27f0888d5c80ef6a550734bdc53febd2df (patch) | |
tree | 756cad7b6c49779627d2a08f4e1140835ab82643 /t/t5505-remote.sh | |
parent | a811e4f0f023d88596adbf39674a18d34b2f152d (diff) | |
download | git-740fdd27f0888d5c80ef6a550734bdc53febd2df.tar.gz |
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>
Diffstat (limited to 't/t5505-remote.sh')
-rwxr-xr-x | t/t5505-remote.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index ecfc999aaa..004a8dc5ed 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -237,4 +237,14 @@ test_expect_success 'update default (overridden, with funny whitespace)' ' ' +test_expect_success '"remote show" does not show symbolic refs' ' + + git clone one three && + (cd three && + git remote show origin > output && + ! grep HEAD < output && + ! grep -i stale < output) + +' + test_done |