merge(3p/git): Merge git subtree at v2.29.2
This also bumps the stable nixpkgs to 20.09 as of 2020-11-21, because there is some breakage in the git build related to the netrc credentials helper which someone has taken care of in nixpkgs. The stable channel is not used for anything other than git, so this should be fine. Change-Id: I3575a19dab09e1e9556cf8231d717de9890484fb
This commit is contained in:
parent
082c006c04
commit
f4609b896f
1485 changed files with 241535 additions and 109418 deletions
21
third_party/git/t/t1050-large.sh
vendored
21
third_party/git/t/t1050-large.sh
vendored
|
|
@ -53,7 +53,8 @@ test_expect_success 'add a large file or two' '
|
|||
for p in .git/objects/pack/pack-*.pack
|
||||
do
|
||||
count=$(( $count + 1 ))
|
||||
if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
|
||||
if test_path_is_file "$p" &&
|
||||
idx=${p%.pack}.idx && test_path_is_file "$idx"
|
||||
then
|
||||
continue
|
||||
fi
|
||||
|
|
@ -63,9 +64,9 @@ test_expect_success 'add a large file or two' '
|
|||
test $count = 1 &&
|
||||
cnt=$(git show-index <"$idx" | wc -l) &&
|
||||
test $cnt = 2 &&
|
||||
for l in .git/objects/??/??????????????????????????????????????
|
||||
for l in .git/objects/$OIDPATH_REGEX
|
||||
do
|
||||
test -f "$l" || continue
|
||||
test_path_is_file "$l" || continue
|
||||
bad=t
|
||||
done &&
|
||||
test -z "$bad" &&
|
||||
|
|
@ -76,7 +77,8 @@ test_expect_success 'add a large file or two' '
|
|||
for p in .git/objects/pack/pack-*.pack
|
||||
do
|
||||
count=$(( $count + 1 ))
|
||||
if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
|
||||
if test_path_is_file "$p" &&
|
||||
idx=${p%.pack}.idx && test_path_is_file "$idx"
|
||||
then
|
||||
continue
|
||||
fi
|
||||
|
|
@ -111,7 +113,7 @@ test_expect_success 'packsize limit' '
|
|||
count=0 &&
|
||||
for pi in .git/objects/pack/pack-*.idx
|
||||
do
|
||||
test -f "$pi" && count=$(( $count + 1 ))
|
||||
test_path_is_file "$pi" && count=$(( $count + 1 ))
|
||||
done &&
|
||||
test $count = 2 &&
|
||||
|
||||
|
|
@ -175,7 +177,8 @@ test_expect_success 'git-show a large file' '
|
|||
|
||||
test_expect_success 'index-pack' '
|
||||
git clone file://"$(pwd)"/.git foo &&
|
||||
GIT_DIR=non-existent git index-pack --strict --verify foo/.git/objects/pack/*.pack
|
||||
GIT_DIR=non-existent git index-pack --object-format=$(test_oid algo) \
|
||||
--strict --verify foo/.git/objects/pack/*.pack
|
||||
'
|
||||
|
||||
test_expect_success 'repack' '
|
||||
|
|
@ -194,15 +197,15 @@ test_expect_success 'pack-objects with large loose object' '
|
|||
test_cmp huge actual
|
||||
'
|
||||
|
||||
test_expect_success 'tar achiving' '
|
||||
test_expect_success 'tar archiving' '
|
||||
git archive --format=tar HEAD >/dev/null
|
||||
'
|
||||
|
||||
test_expect_success 'zip achiving, store only' '
|
||||
test_expect_success 'zip archiving, store only' '
|
||||
git archive --format=zip -0 HEAD >/dev/null
|
||||
'
|
||||
|
||||
test_expect_success 'zip achiving, deflate' '
|
||||
test_expect_success 'zip archiving, deflate' '
|
||||
git archive --format=zip HEAD >/dev/null
|
||||
'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue