Merge branch 'ps/pathspec-empty-prefix-origin'
[gitweb.git] / t / t1406-submodule-ref-store.sh
index 22214ebd326145214ea876e1bdd538b2b5158196..13b5454c5642f2f21786bb8bd3d06a2d27f1cf15 100755 (executable)
@@ -47,6 +47,12 @@ test_expect_success 'for_each_ref(refs/heads/)' '
        test_cmp expected actual
 '
 
+test_expect_success 'for_each_ref() is sorted' '
+       $RUN for-each-ref refs/heads/ | cut -c 42- >actual &&
+       sort actual > expected &&
+       test_cmp expected actual
+'
+
 test_expect_success 'resolve_ref(master)' '
        SHA1=`git -C sub rev-parse master` &&
        echo "$SHA1 refs/heads/master 0x0" >expected &&