No subject


Thu Jun 12 23:09:36 BST 2008


*   ok 2: clone without alternate

* expecting success: 

	test_tick &&
	echo ni >file &&
	git commit -a -m second &&

	cnt=$( (
		git count-objects | sed -e "s/ *objects,.*//"
	) ) &&
	test $cnt -eq 6

Created commit 12e0958: second
 1 files changed, 1 insertions(+), 1 deletions(-)
*   ok 3: further commits in the original

* expecting success: 

	git rev-list --objects HEAD |
	git pack-objects --stdout |
	(
		cd cloned &&
		git unpack-objects
	) &&

	cnt=$( (
		cd cloned &&
		git count-objects | sed -e "s/ *objects,.*//"
	) ) &&
	test $cnt -eq 6

	blob=$(git rev-parse HEAD:file | sed -e "s|..|&/|") &&
	test -f "cloned/.git/objects/$blob" &&
	rm -f "cloned/.git/objects/$blob" &&

	cnt=$( (
		cd cloned &&
		git count-objects | sed -e "s/ *objects,.*//"
	) ) &&
	test $cnt -eq 5


*   ok 4: copy commit and tree but not blob by hand

* expecting success: 

	(
		cd cloned &&
		git fetch
	) &&

	cnt=$( (
		cd cloned &&
		git count-objects | sed -e "s/ *objects,.*//"
	) ) &&
	test $cnt -eq 6


remote: Counting objects: 5, done.
remote: Total 3 (delta 0), reused 0 (delta 0)


More information about the ubuntu-autotest mailing list