]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3203-branch-output.sh
branch: sort detached HEAD based on a flag
[thirdparty/git.git] / t / t3203-branch-output.sh
index f92fb3aab9dc39b9fac28a7531205f67d599bf66..8f53b081365296a0e8758c113ceba0de8931109b 100755 (executable)
@@ -223,8 +223,8 @@ test_expect_success 'git branch `--sort=[-]objectsize` option' '
        cat >expect <<-\EOF &&
          branch-one
          main
-       * (HEAD detached from fromtag)
          branch-two
+       * (HEAD detached from fromtag)
        EOF
        git branch --sort=-objectsize >actual &&
        test_i18ncmp expect actual
@@ -241,10 +241,10 @@ test_expect_success 'git branch `--sort=[-]type` option' '
        test_i18ncmp expect actual &&
 
        cat >expect <<-\EOF &&
-       * (HEAD detached from fromtag)
          branch-one
          branch-two
          main
+       * (HEAD detached from fromtag)
        EOF
        git branch --sort=-type >actual &&
        test_i18ncmp expect actual