From: Eric Sunshine Date: Thu, 14 Feb 2019 10:54:25 GMT Subject: Re: [PATCH 1/3] prune: lazily perform reachability traversal Message-ID: In-Reply-To: <20190214043522.GA19183@sigill.intra.peff.net> On Wed, Feb 13, 2019 at 11:35 PM Jeff King wrote: > diff --git a/t/t5304-prune.sh b/t/t5304-prune.sh > @@ -274,6 +274,18 @@ test_expect_success 'prune .git/shallow' ' > +test_expect_success 'prune .git/shallow when there are no loose objects' ' > + SHA1=$(echo hi|git commit-tree HEAD^{tree}) && Perhaps name this variable 'oid' rather than 'SHA1' to make brian happy. > + echo $SHA1 >.git/shallow && > + git update-ref refs/heads/shallow-tip $SHA1 && > + git repack -ad && > + # verify assumption that all loose objects are gone > + git count-objects | grep ^0 && > + git prune && > + echo $SHA1 >expect && > + test_cmp expect .git/shallow > +'