t / t1008-read-tree-overlay.shon commit Add push --set-upstream (e9fcd1e)
   1#!/bin/sh
   2
   3test_description='test multi-tree read-tree without merging'
   4
   5. ./test-lib.sh
   6
   7test_expect_success setup '
   8        echo one >a &&
   9        git add a &&
  10        git commit -m initial &&
  11        git tag initial &&
  12        echo two >b &&
  13        git add b &&
  14        git commit -m second &&
  15        git checkout -b side initial &&
  16        echo three >a &&
  17        mkdir b &&
  18        echo four >b/c &&
  19        git add b/c &&
  20        git commit -m third
  21'
  22
  23test_expect_success 'multi-read' '
  24        git read-tree initial master side &&
  25        (echo a; echo b/c) >expect &&
  26        git ls-files >actual &&
  27        test_cmp expect actual
  28'
  29
  30test_done
  31