No subject


Thu Jun 12 23:09:36 BST 2008


cc8d3d23923315bbb799dd9316e1e4901d783716 refs/tags/anno
ae81e985f992b3dbefc73f21fae108c493d4b494 refs/tags/light
*   ok 6: fetch following tags

* expecting failure: 

	cd "$D" &&

	mkdir five &&
	cd five &&
	git init &&

	git fetch .. anno:five


Initialized empty Git repository in .git/
fatal: Couldn't find remote ref anno
*   ok 7: fetch must not resolve short tag name

* expecting failure: 

	cd "$D" &&
	git-update-ref refs/remotes/six/HEAD HEAD

	mkdir six &&
	cd six &&
	git init &&

	git fetch .. six:six


Initialized empty Git repository in .git/
fatal: Couldn't find remote ref six
*   ok 8: fetch must not resolve short remote name

* expecting success: 
	cd "$D" &&
	echo >file updated again by origin &&
	git commit -a -m "tip" &&
	git bundle create bundle1 master^..master

Created commit f0e6fa6: tip
 1 files changed, 1 insertions(+), 1 deletions(-)
Counting objects: 5, done.
Writing objects:  33% (1/3)   
Writing objects:  66% (2/3)   
Writing objects: 100% (3/3)   
Writing objects: 100% (3/3), 265 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
*   ok 9: create bundle 1

* expecting success: 
	head -n 1 "$D"/bundle1 | grep "^#" &&
	head -n 2 "$D"/bundle1 | grep "^-[0-9a-f]\{40\} " &&
	head -n 3 "$D"/bundle1 | grep "^[0-9a-f]\{40\} " &&
	head -n 4 "$D"/bundle1 | grep "^$"

# v2 git bundle
-ae81e985f992b3dbefc73f21fae108c493d4b494 updated by origin
f0e6fa6985b958fe26599c83e9018dfe8051101a refs/heads/master

*   ok 10: header of bundle looks right

* expecting success: 
	cd "$D" &&
	git bundle create bundle2 master~2..master

Counting objects: 8, done.
Compressing objects:  50% (1/2)   
Compressing objects: 100% (2/2)   
Compressing objects: 100% (2/2), done.
Writing objects:  16% (1/6)   
Writing objects:  33% (2/6)   
Writing objects:  50% (3/6)   
Writing objects:  66% (4/6)   
Writing objects:  83% (5/6)   
Writing objects: 100% (6/6)   
Writing objects: 100% (6/6), 502 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
*   ok 11: create bundle 2

* expecting failure: 
	cd "$D/bundle" &&
	git checkout -b some-branch &&
	git fetch "$D/bundle1" master:master

Switched to a new branch "some-branch"
error: Repository lacks these prerequisite commits:
error: ae81e985f992b3dbefc73f21fae108c493d4b494 updated by origin
*   ok 12: unbundle 1

* expecting success: 
	cd "$D" &&
	(
		while read x && test -n "$x"
		do
			:;
		done
		cat
	) <bundle1 >bundle.pack &&
	git index-pack bundle.pack &&
	verify=$(git verify-pack -v bundle.pack) &&
	test 4 = $(echo "$verify" | wc -l)

eb46cdf4921edf7d17684c58a247aa7b05c68bc3
*   ok 13: bundle 1 has only 3 files 

* expecting success: 
	cd "$D/bundle" &&
	git fetch ../bundle2 master:master &&
	test "tip" = "$(git log -1 --pretty=oneline master | cut -b42-)"



More information about the ubuntu-autotest mailing list