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
36
third_party/git/t/t6006-rev-list-format.sh
vendored
36
third_party/git/t/t6006-rev-list-format.sh
vendored
|
|
@ -109,31 +109,35 @@ commit $head1
|
|||
EOF
|
||||
|
||||
# we don't test relative here
|
||||
test_format author %an%n%ae%n%ad%n%aD%n%at <<EOF
|
||||
test_format author %an%n%ae%n%al%n%ad%n%aD%n%at <<EOF
|
||||
commit $head2
|
||||
A U Thor
|
||||
author@example.com
|
||||
$GIT_AUTHOR_NAME
|
||||
$GIT_AUTHOR_EMAIL
|
||||
$TEST_AUTHOR_LOCALNAME
|
||||
Thu Apr 7 15:13:13 2005 -0700
|
||||
Thu, 7 Apr 2005 15:13:13 -0700
|
||||
1112911993
|
||||
commit $head1
|
||||
A U Thor
|
||||
author@example.com
|
||||
$GIT_AUTHOR_NAME
|
||||
$GIT_AUTHOR_EMAIL
|
||||
$TEST_AUTHOR_LOCALNAME
|
||||
Thu Apr 7 15:13:13 2005 -0700
|
||||
Thu, 7 Apr 2005 15:13:13 -0700
|
||||
1112911993
|
||||
EOF
|
||||
|
||||
test_format committer %cn%n%ce%n%cd%n%cD%n%ct <<EOF
|
||||
test_format committer %cn%n%ce%n%cl%n%cd%n%cD%n%ct <<EOF
|
||||
commit $head2
|
||||
C O Mitter
|
||||
committer@example.com
|
||||
$GIT_COMMITTER_NAME
|
||||
$GIT_COMMITTER_EMAIL
|
||||
$TEST_COMMITTER_LOCALNAME
|
||||
Thu Apr 7 15:13:13 2005 -0700
|
||||
Thu, 7 Apr 2005 15:13:13 -0700
|
||||
1112911993
|
||||
commit $head1
|
||||
C O Mitter
|
||||
committer@example.com
|
||||
$GIT_COMMITTER_NAME
|
||||
$GIT_COMMITTER_EMAIL
|
||||
$TEST_COMMITTER_LOCALNAME
|
||||
Thu Apr 7 15:13:13 2005 -0700
|
||||
Thu, 7 Apr 2005 15:13:13 -0700
|
||||
1112911993
|
||||
|
|
@ -410,7 +414,7 @@ test_expect_success 'empty email' '
|
|||
test_tick &&
|
||||
C=$(GIT_AUTHOR_EMAIL= git commit-tree HEAD^{tree} </dev/null) &&
|
||||
A=$(git show --pretty=format:%an,%ae,%ad%n -s $C) &&
|
||||
verbose test "$A" = "A U Thor,,Thu Apr 7 15:14:13 2005 -0700"
|
||||
verbose test "$A" = "$GIT_AUTHOR_NAME,,Thu Apr 7 15:14:13 2005 -0700"
|
||||
'
|
||||
|
||||
test_expect_success 'del LF before empty (1)' '
|
||||
|
|
@ -459,9 +463,10 @@ test_expect_success '--abbrev' '
|
|||
'
|
||||
|
||||
test_expect_success '%H is not affected by --abbrev-commit' '
|
||||
expected=$(($(test_oid hexsz) + 1)) &&
|
||||
git log -1 --format=%H --abbrev-commit --abbrev=20 HEAD >actual &&
|
||||
len=$(wc -c <actual) &&
|
||||
test $len = 41
|
||||
test $len = $expected
|
||||
'
|
||||
|
||||
test_expect_success '%h is not affected by --abbrev-commit' '
|
||||
|
|
@ -495,15 +500,14 @@ test_expect_success '%gd shortens ref name' '
|
|||
'
|
||||
|
||||
test_expect_success 'reflog identity' '
|
||||
echo "C O Mitter:committer@example.com" >expect &&
|
||||
echo "$GIT_COMMITTER_NAME:$GIT_COMMITTER_EMAIL" >expect &&
|
||||
git log -g -1 --format="%gn:%ge" >actual &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'oneline with empty message' '
|
||||
git commit -m "dummy" --allow-empty &&
|
||||
git commit -m "dummy" --allow-empty &&
|
||||
git filter-branch --msg-filter "sed -e s/dummy//" HEAD^^.. &&
|
||||
git commit --allow-empty --cleanup=verbatim -m "$LF" &&
|
||||
git commit --allow-empty --allow-empty-message &&
|
||||
git rev-list --oneline HEAD >test.txt &&
|
||||
test_line_count = 5 test.txt &&
|
||||
git rev-list --oneline --graph HEAD >testg.txt &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue