config: match both symlink & realpath versions in IncludeIf.gitdir:*
[gitweb.git] / t / t1405-main-ref-store.sh
index 77e1c130c2de85d18fadc114e82c7d169e075ab6..490521f8cbd5eb28607b38860fb19a3ee20fdd56 100755 (executable)
@@ -53,6 +53,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(new-master)' '
        SHA1=`git rev-parse new-master` &&
        echo "$SHA1 refs/heads/new-master 0x0" >expected &&