stg new p1 -m "p1"
'
-test_expect_failure \
+test_expect_success \
'Rename the current stgit branch' \
- 'stg branch -r foo bar
+ '! 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)
'