diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-09 08:52:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-11 07:26:32 +0100 |
commit | 057e71384a0eff83236268dcd3ff7ebc7789de74 (patch) | |
tree | b599fded5625c3489f60568ba482df9ba3e71dbc /t/t5505-remote.sh | |
parent | remote prune: warn dangling symrefs (diff) | |
download | git-057e71384a0eff83236268dcd3ff7ebc7789de74.tar.xz git-057e71384a0eff83236268dcd3ff7ebc7789de74.zip |
Warn use of "origin" when remotes/origin/HEAD is dangling
The previous one squelched the diagnositic message we used to issue every
time we enumerated the refs and noticed a dangling ref. This adds the
warning back to the place where the user actually attempts to use it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t5505-remote.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index 2067dc558f..eb637184a0 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -421,6 +421,12 @@ test_expect_success 'remote prune to cause a dangling symref' ' git branch -a ) 2>err && ! grep "points nowhere" err + ( + cd seven && + test_must_fail git branch nomore origin + ) 2>err && + grep "dangling symref" err ' test_done + |