-
Notifications
You must be signed in to change notification settings - Fork 142
Document two partial clone bugs, fix one #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,6 +374,37 @@ test_expect_success 'fetch lazy-fetches only to resolve deltas, protocol v2' ' | |
grep "want $(cat hash)" trace | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Eric Sunshine wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Eric Sunshine wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
|
||
' | ||
|
||
# The following two tests must be in this order, or else | ||
# the first will not fail. It is important that the srv.bare | ||
# repository did not have tags during clone, but has tags | ||
# in the fetch. | ||
|
||
test_expect_failure 'verify fetch succeeds when asking for new tags' ' | ||
git clone --filter=blob:none "file://$(pwd)/srv.bare" tag-test && | ||
for i in I J K | ||
do | ||
test_commit -C src $i && | ||
git -C src branch $i || return 1 | ||
done && | ||
git -C srv.bare fetch --tags origin +refs/heads/*:refs/heads/* && | ||
git -C tag-test -c protocol.version=2 fetch --tags origin | ||
' | ||
|
||
test_expect_success 'verify fetch downloads only one pack when updating refs' ' | ||
git clone --filter=blob:none "file://$(pwd)/srv.bare" pack-test && | ||
ls pack-test/.git/objects/pack/*pack >pack-list && | ||
test_line_count = 2 pack-list && | ||
for i in A B C | ||
do | ||
test_commit -C src $i && | ||
git -C src branch $i || return 1 | ||
done && | ||
git -C srv.bare fetch origin +refs/heads/*:refs/heads/* && | ||
git -C pack-test fetch origin && | ||
ls pack-test/.git/objects/pack/*pack >pack-list && | ||
test_line_count = 3 pack-list | ||
' | ||
|
||
. "$TEST_DIRECTORY"/lib-httpd.sh | ||
start_httpd | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Jonathan Tan wrote (reply to this):