3 test_description='fetching and pushing project with subproject'
7 test_expect_success setup '
14 git commit -m "subproject commit #1"
17 git add sub mainfile &&
19 git commit -m "superproject commit #1"
22 test_expect_success clone '
23 git clone file://`pwd`/.git cloned &&
24 (git rev-parse HEAD; git ls-files -s) >expected &&
27 (git rev-parse HEAD; git ls-files -s) >../actual
29 test_cmp expected actual
32 test_expect_success advance '
33 echo more >mainfile &&
34 git update-index --force-remove sub &&
35 mv sub/.git sub/.git-disabled &&
36 git add sub/subfile mainfile &&
37 mv sub/.git-disabled sub/.git &&
39 git commit -m "superproject commit #2"
42 test_expect_success fetch '
43 (git rev-parse HEAD; git ls-files -s) >expected &&
47 (git rev-parse HEAD; git ls-files -s) >../actual
49 test_cmp expected actual