No subject
Thu Jun 12 23:09:36 BST 2008
470829cea640f30c289d5e8bf0475153cfe50552 refs/tags/anno
dba8a8556924eb7cc002e551cd2da16760bc44f9 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 10523f1: 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), 266 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
-dba8a8556924eb7cc002e551cd2da16760bc44f9 updated by origin
10523f19cdc122682a4319806237debb0b6d79c7 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), 506 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: dba8a8556924eb7cc002e551cd2da16760bc44f9 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)
d95edca7eae817dae4a5248a7e1b38c6123aeb82
* 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