1. Stefan Saasen
  2. git


Junio C Hamano  committed 4bc51db

t1200: use --topo-order to keep the show-branch output stable.

Because a batch-oriented script creates many commits within a second
on a fast machine, show-branch output of the test results are unstable
without topo-order.

Signed-off-by: Junio C Hamano <junkio@cox.net>

  • Participants
  • Parent commits 6b209d4
  • Branches master

Comments (0)

Files changed (1)

File t/t1200-tutorial.sh

View file
 ++ [mybranch] Some work.
-git show-branch master mybranch > show-branch.output
+git show-branch --topo-order master mybranch > show-branch.output
 test_expect_success 'git show-branch' 'cmp show-branch.expect show-branch.output'
 git checkout mybranch
 ++ [master] Merged "mybranch" changes.
-git show-branch master mybranch > show-branch2.output
+git show-branch --topo-order master mybranch > show-branch2.output
 test_expect_success 'git show-branch' 'cmp show-branch2.expect show-branch2.output'
 # TODO: test git fetch