git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* t5505-remote.29 not working correctly
@ 2010-03-16  1:12 Brandon Casey
  2010-03-16  3:26 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Brandon Casey @ 2010-03-16  1:12 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List


Junio,

I ran across this flaw while investigating something else.

The test titled 'remote prune to cause a dangling symref' is
not linked together with &&'s.  When the &&'s are added, it
does not complete successfully.

Here's the copy&pasted diff which adds '&&' in two places:

diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index a82c5ff..a3406dd 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -510,12 +510,12 @@ test_expect_success 'remote prune to cause a dangling symr
        ) 2>err &&
        grep "has become dangling" err &&
 
-       : And the dangling symref will not cause other annoying errors
+       : And the dangling symref will not cause other annoying errors &&
        (
                cd seven &&
                git branch -a
        ) 2>err &&
-       ! grep "points nowhere" err
+       ! grep "points nowhere" err &&
        (
                cd seven &&
                test_must_fail git branch nomore origin


The first grep causes the failure:

   ...
   (
   	cd seven &&
   	git remote prune origin
   ) 2>err &&
   grep "has become dangling" err &&
   ...

'git remote prune origin' is not printing "has become dangling".

-brandon

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-16  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16  1:12 t5505-remote.29 not working correctly Brandon Casey
2010-03-16  3:26 ` Junio C Hamano
2010-03-16  5:16   ` Junio C Hamano
2010-03-16  7:40     ` [PATCH] refs: ref entry with NULL sha1 is can be a dangling symref Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).