t5505-remote.29 not working correctly
- From
- Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
- Date
- Mar 16, 2010, 01:12 UTC
- Message-ID
- <OGVB8d37MB-s4H3VOECmd2htUvpq3B4NginojN-XskLyvHmnbfGA4Q@cipher.nrlssc.navy.mil>
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