diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 22:11:15 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 22:46:35 +0000 |
commit | 7cab936d3709f87664f2025582dfd99d910552e6 (patch) | |
tree | 85624b3868fed2dd90402d9e10639cbd4f06c066 /tests/tests/inarchivecopy | |
parent | 9eb48d0627f84bb57e9a81bf93bde98e2fa3fbf5 (diff) |
Test suite: inarchivecopy: Do a "git init" and "git fetch" test too
This checks that we receive all the needed objects even if we don't do
git clone.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/inarchivecopy')
-rwxr-xr-x | tests/tests/inarchivecopy | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tests/inarchivecopy b/tests/tests/inarchivecopy index b6cbb12..411f560 100755 --- a/tests/tests/inarchivecopy +++ b/tests/tests/inarchivecopy @@ -49,9 +49,21 @@ copy-check () { local cloned=$(t-sametree-parent HEAD) cd .. + rm -rf example.initd + mkdir example.initd + cd example.initd + git init + t-refs-same-start + t-dgit -p $p fetch $tosuite + git reset --hard refs/remotes/dgit/dgit/$tosuite + copy-check-good + local initd=$(t-sametree-parent HEAD) + cd .. + t-refs-same-start t-ref-same-val fetched $fetched t-ref-same-val cloned $cloned + t-ref-same-val initd $initd } copy-check 2.0 |