Code

diff -c/--cc: do not mistake "resolved as deletion" as "use working tree"
[git.git] / t / t5704-bundle.sh
1 #!/bin/sh
3 test_description='some bundle related tests'
4 . ./test-lib.sh
6 test_expect_success 'setup' '
8         : > file &&
9         git add file &&
10         test_tick &&
11         git commit -m initial &&
12         test_tick &&
13         git tag -m tag tag &&
14         : > file2 &&
15         git add file2 &&
16         : > file3 &&
17         test_tick &&
18         git commit -m second &&
19         git add file3 &&
20         test_tick &&
21         git commit -m third
23 '
25 test_expect_success 'tags can be excluded by rev-list options' '
27         git bundle create bundle --all --since=7.Apr.2005.15:16:00.-0700 &&
28         git ls-remote bundle > output &&
29         ! grep tag output
31 '
33 test_expect_failure 'bundle --stdin' '
35         echo master | git bundle create stdin-bundle.bdl --stdin &&
36         git ls-remote stdin-bundle.bdl >output &&
37         grep master output
39 '
41 test_expect_failure 'bundle --stdin <rev-list options>' '
43         echo master | git bundle create hybrid-bundle.bdl --stdin tag &&
44         git ls-remote hybrid-bundle.bdl >output &&
45         grep master output
47 '
49 test_done