chiark / gitweb /
Test suite: inarchivecopy: Do a "git init" and "git fetch" test too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 22:11:15 +0000 (22:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 22:46:35 +0000 (22:46 +0000)
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>
tests/tests/inarchivecopy

index b6cbb129a93a5ae5603aa1718013a2ca756143f2..411f56091a25ed9623555c6e46aee873ff9f781b 100755 (executable)
@@ -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