t1510 (worktree): fix '&&' chaining
authorRamkumar Ramachandra <artagnon@gmail.com>
Thu, 8 Dec 2011 13:10:16 +0000 (18:40 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Dec 2011 18:38:13 +0000 (10:38 -0800)
commit7f9a5fc6876a3158cb29b0c2d13ccb226ec7d679
tree4f7722de7aa5cf124dd39ffd9d18404df0c9273c
parent67b6afe1ed424934679649752c9efb9896bfacf0
t1510 (worktree): fix '&&' chaining

Breaks in a test assertion's && chain can potentially hide failures
from earlier commands in the chain.

'unset' returns non-zero status when the variable passed was already unset
on some shells; we need to change these instances to 'sane_unset'.

Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1501-worktree.sh