Make sure that the output of "stg status" is sorted
[stgit] / t / t1001-branch-rename.sh
index 28af8ae..285440f 100755 (executable)
@@ -26,7 +26,7 @@ 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)
 '