X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/2b5f6f656fa95d2ffefe7cc1261f4b0fc614f7b8..baf8241d1b7835ba31125d2b75683601ee2b0403:/t/t1001-branch-rename.sh diff --git a/t/t1001-branch-rename.sh b/t/t1001-branch-rename.sh index 28af8ae..d5d3aef 100755 --- a/t/t1001-branch-rename.sh +++ b/t/t1001-branch-rename.sh @@ -17,16 +17,16 @@ test_expect_success \ stg new p1 -m "p1" ' -test_expect_failure \ +test_expect_success \ 'Rename the current stgit branch' \ - 'stg branch -r foo bar + 'command_error stg branch -r foo bar ' test_expect_success \ 'Rename an stgit branch' \ 'stg branch -c buz && stg branch -r foo bar && - test -z `find .git -name foo | tee /dev/stderr` && + [ -z $(find .git -type f | grep foo | tee /dev/stderr) ] && test -z $(git config -l | grep branch\\.foo) '