8000 upgrade libgit2 and release as 8w-2023-01-30 by VinnyOG · Pull Request #28 · 8thwall/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

upgrade libgit2 and release as 8w-2023-01-30 #28

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

Merged
merged 82 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
96d2d42
net: move url tests into util
ethomson Apr 14, 2022
fb6c86a
url: remove invalid scp url parsing test
ethomson Apr 18, 2022
ffef8e0
url: test that we don't expand % encoding in paths
ethomson Jun 17, 2022
373a3c9
url_parse: introduce our own url parsing
ethomson Apr 18, 2022
1ee9b1f
url: only allow @s in usernames for ssh urls
ethomson Jun 17, 2022
211c971
push: revparse refspec source, so you can push things that are not refs
Jul 18, 2022
e85ef77
clone: test long custom header
kcsaul Jul 22, 2022
f567032
winhttp: handle long custom headers
kcsaul Jul 22, 2022
bf80cb6
Don't fail the whole clone if you can't find a default branch
torvalds Jul 30, 2022
ab5f2bc
fix compile on Windows with -DWIN32_LEAN_AND_MEAN
christoph-cullmann Aug 8, 2022
d64f3d0
Fix #6365
Vinz2008 Aug 10, 2022
bb65da7
Fix memory leak
csware Aug 14, 2022
ff0df3a
#6366: When a worktree is missing, return GIT_ENOTFOUND.
arroz Aug 31, 2022
937d8f8
Delete create.c.bak
lrm29 Sep 6, 2022
ec1aec3
ci: move to macos-11
ethomson Sep 16, 2022
ebb0830
ci: clean up daemon processes on exit
ethomson Aug 22, 2022
7107136
Merge pull request #6403 from libgit2/ethomson/ci
ethomson Sep 16, 2022
ed27768
Merge remote-tracking branch 'origin/main' into clone_namespace
ethomson Sep 19, 2022
8000
c928d96
clone: narrow success tests on HEAD-less remotes
ethomson Aug 22, 2022
9d9a90a
clone: test bare clone namespaced repo with no HEAD
ethomson Sep 16, 2022
cf32694
clone: test for cloning a repo with namespace scope
ethomson Sep 16, 2022
5250fa9
Merge pull request #6363 from kcsaul/long_custom_header
ethomson Sep 19, 2022
6ad26cd
Update src/util/rand.c
ethomson Sep 19, 2022
d959e75
Merge pull request #6373 from christoph-cullmann/fix_compile_WIN32_LE…
ethomson Sep 19, 2022
b075bda
Merge pull request #6377 from Vinz2008/main
ethomson Sep 19, 2022
a54cc2b
Merge pull request #6382 from csware/fix_mem_leak
ethomson Sep 19, 2022
d111cc9
Merge pull request #6398 from lrm29/patch-1
ethomson Sep 19, 2022
44b8248
Merge pull request #6369 from torvalds/main
ethomson Sep 19, 2022
c8d5b43
tests: skip sha256 tests when not compiled in
ethomson Sep 19, 2022
d78fad1
Merge pull request #6395 from arroz/fix/nonexistent-worktree-lookup-e…
ethomson Sep 19, 2022
c117246
cmake: provide empty experimental.h for non-cmake users
ethomson Sep 19, 2022
9286e59
Merge pull request #6405 from libgit2/ethomson/experimental
ethomson Sep 21, 2022
dd21e20
repo: test ownership validation fails with expected error
kcsaul Oct 1, 2022
93c071a
repo: ignore missing 'safe.directory' config during ownership checks
kcsaul Oct 1, 2022
aa1605d
add 2-clause BSD license to COPYING
martinvonz Oct 7, 2022
a3841af
benchmark: update path
ethomson Oct 18, 2022
f8683b7
http: Update httpclient options when reusing an existing connection.
slackner Oct 6, 2022
74c2b4b
ssh: verify the remote's host key against known_hosts if it exists
carlosmn Nov 1, 2022
c7e8de1
Fix leak in git_tag_create_from_buffer
julianmesa-gitkraken Nov 3, 2022
a8b18f1
Missing dispose
julianmesa-gitkraken Nov 3, 2022
25dd1c9
Missing dispose in git_tag_create__internal
julianmesa-gitkraken Nov 3, 2022
2c4eb83
commit-graph: only verify csum on git_commit_graph_open().
Jun 16, 2022
c29651f
tests: append the github.com ssh keys so we have access during tests
carlosmn Nov 2, 2022
a218f1b
tests: move online::clone::ssh_auth_methods into the ssh test suite
carlosmn Nov 2, 2022
e33d7c0
ssh: look for a key in known_hosts to set the key type for the handshake
carlosmn Nov 2, 2022
6de3221
commit_graph: use uint64_t for arithmetic
derrickstolee Nov 10, 2022
e45b25e
Merge pull request #6420 from derrickstolee/commit-graph-hashing
ethomson Nov 18, 2022
ad2d3a0
Merge pull request #6408 from kcsaul/fix-safe-directory-not-found
ethomson Nov 18, 2022
a7d841a
Merge pull request #6421 from julianmesa-gitkraken/fix-leak-git_tag_c…
ethomson Nov 18, 2022
594bd70
Add support for "safe.directory *"
csware Nov 19, 2022
8c7345e
Merge pull request #6416 from slackner/httpclient_update_options
ethomson Nov 23, 2022
33e1c98
Merge pull request #6413 from martinvonz/bsd-2-clause
ethomson Nov 23, 2022
d0203b6
Merge pull request #6429 from csware/safe.directory-wildcard
ethomson Nov 23, 2022
12832ba
Merge pull request #6326 from libgit2/ethomson/url_parse
ethomson Nov 23, 2022
4885088
thread: avoid warnings when building without threads
Nov 23, 2022
b57b762
tests: Add new test to submodule::update
tagesuhu Nov 25, 2022
3f4b91b
submodule: Do not try to update a missing submodule
tagesuhu Nov 25, 2022
be7356d
transport: fix capabilities calculation
russell Nov 25, 2022
936b184
Merge pull request #6434 from tagesuhu/main
ethomson Nov 28, 2022
ae7a0a6
Use `git_clone__submodule` to avoid file checks in workdir
abizjak Jan 5, 2023
8000
747af66
README: show v1.5 and v1.4 branch builds
ethomson Jan 18, 2023
2d25118
ci: update version numbers of actions
ethomson Jan 20, 2023
3ee86a3
Merge commit 'e33d7c068' into ssh_key_checking
ethomson Jan 20, 2023
1845eac
Merge pull request #6448 from libgit2/ethomson/action_versions
ethomson Jan 20, 2023
d3f554f
Merge pull request #6435 from russell/capabilities-typo
ethomson Jan 20, 2023
4d47ad6
Merge pull request #6432 from libgit2/ethomson/noop_args
ethomson Jan 20, 2023
2347eb3
Merge pull request #6362 from sven-of-cord/main
ethomson Jan 20, 2023
667c353
push: use resolved oid as the source
ethomson Jan 20, 2023
036fe1a
Merge pull request #6452 from libgit2/ethomson/oid_warning
ethomson Jan 20, 2023
a677440
src: hide unused hmac() prototype
0-wiz-0 Jan 24, 2023
d5aafe1
hash: drop all declarations from hmac
Jan 24, 2023
6374c4d
Merge pull request #6458 from 0-wiz-0/netbsd
ethomson Jan 24, 2023
6bf0459
tests: update clar test runner
ethomson Jan 25, 2023
4e15c9c
tests: fix clar declarations
ethomson Jan 25, 2023
ed26a90
clar: cross-platform elapsed time counter
ethomson Jan 25, 2023
14c1156
Merge pull request #6459 from libgit2/ethomson/clar_update
ethomson Jan 25, 2023
548fc8c
ci: always create test summaries, even on failure
ethomson Jan 25, 2023
8863c44
ci: update upload-artifact dependency
ethomson Jan 25, 2023
7742b1c
ci: upgrade test-summary action
ethomson Jan 25, 2023
0384a40
Merge pull request #6460 from libgit2/ethomson/clar_update
ethomson Jan 25, 2023
c438d0b
Merge pull request #6444 from abizjak/main
ethomson Jan 26, 2023
1b2d0ef
Get libgit2 working for 8thwall. (#24)
VinnyOG Jun 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clone: test bare clone namespaced repo with no HEAD
Test that we can successfully clone a repository that is namespace
scoped to a bare repository locally. We need not specify a checkout
branch in this case (obviously, since we do not check anything out in a
bare clone).
  • Loading branch information
ethomson committed Sep 19, 2022
commit 9d9a90ad3d64d54948b736f6866a82c6670b61c1
37 changes: 28 additions & 9 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ CONTINUE_ON_FAILURE=0
cleanup() {
echo "Cleaning up..."

if [ ! -z "$GITDAEMON_PID" ]; then
echo "Stopping git daemon..."
kill $GITDAEMON_PID
if [ ! -z "$GIT_STANDARD_PID" ]; then
echo "Stopping git daemon (standard)..."
kill $GIT_STANDARD_PID
fi

if [ ! -z "$GIT_NAMESPACE_PID" ]; then
echo "Stopping git daemon (namespace)..."
kill $GIT_NAMESPACE_PID
fi

if [ ! -z "$PROXY_BASIC_PID" ]; then
Expand Down Expand Up @@ -98,11 +103,17 @@ echo "##########################################################################
echo ""

if [ -z "$SKIP_GITDAEMON_TESTS" ]; then
echo "Starting git daemon..."
GITDAEMON_DIR=`mktemp -d ${TMPDIR}/gitdaemon.XXXXXXXX`
git init --bare "${GITDAEMON_DIR}/test.git" >/dev/null
git daemon --listen=localhost --export-all --enable=receive-pack --base-path="${GITDAEMON_DIR}" "${GITDAEMON_DIR}" 2>/dev/null &
GITDAEMON_PID=$!
echo "Starting git daemon (standard)..."
GIT_STANDARD_DIR=`mktemp -d ${TMPDIR}/git_standard.XXXXXXXX`
git init --bare "${GIT_STANDARD_DIR}/test.git" >/dev/null
git daemon --listen=localhost --export-all --enable=receive-pack --base-path="${GIT_STANDARD_DIR}" "${GIT_STANDARD_DIR}" 2>/dev/null &
GIT_STANDARD_PID=$!

echo "Starting git daemon (namespace)..."
GIT_NAMESPACE_DIR=`mktemp -d ${TMPDIR}/git_namespace.XXXXXXXX`
cp -R "${SOURCE_DIR}/tests/resources/namespace.git" "${GIT_NAMESPACE_DIR}/namespace.git"
GIT_NAMESPACE="name1" git daemon --listen=localhost --port=9419 --export-all --enable=receive-pack --base-path="${GIT_NAMESPACE_DIR}" "${GIT_NAMESPACE_DIR}" &
GIT_NAMESPACE_PID=$!
fi

if [ -z "$SKIP_PROXY_TESTS" ]; then
Expand Down Expand Up @@ -229,12 +240,20 @@ fi

if [ -z "$SKIP_GITDAEMON_TESTS" ]; then
echo ""
echo "Running gitdaemon tests"
echo "Running gitdaemon (standard) tests"
echo ""

export GITTEST_REMOTE_URL="git://localhost/test.git"
run_test gitdaemon
unset GITTEST_REMOTE_URL

echo ""
echo "Running gitdaemon (namespace) tests"
echo ""

export GITTEST_REMOTE_URL="git://localhost:9419/namespace.git"
run_test gitdaemon_namespace
unset GITTEST_REMOTE_URL
fi

if [ -z "$SKIP_PROXY_TESTS" ]; then
Expand Down
1 change: 1 addition & 0 deletions tests/libgit2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ add_clar_test(libgit2_tests invasive -v -sfilter::stream::bigfile -so
add_clar_test(libgit2_tests online -v -sonline -xonline::customcert)
add_clar_test(libgit2_tests online_customcert -v -sonline::customcert)
add_clar_test(libgit2_tests gitdaemon -v -sonline::push)
add_clar_test(libgit2_tests gitdaemon_namespace -v -sonline::clone::namespace)
add_clar_test(libgit2_tests ssh -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths -sonline::clone::path_whitespace_ssh)
add_clar_test(libgit2_tests proxy -v -sonline::clone::proxy)
add_clar_test(libgit2_tests auth_clone -v -sonline::clone::cred)
Expand Down
19 changes: 19 additions & 0 deletions tests/libgit2/online/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,3 +1006,22 @@ void test_online_clone__redirect_initial_fails_for_subsequent(void)

cl_git_fail(git_clone(&g_repo, _remote_redirect_subsequent, "./fail", &options));
}

void test_online_clone__namespace_bare(void)
{
git_clone_options options = GIT_CLONE_OPTIONS_INIT;
git_reference *head;

if (!_remote_url)
cl_skip();

options.bare = true;

cl_git_pass(git_clone(&g_repo, _remote_url, "./namespaced.git", &options));

cl_git_pass(git_reference_lookup(&head, g_repo, GIT_HEAD_FILE));
cl_assert_equal_i(GIT_REFERENCE_SYMBOLIC, git_reference_type(head));
cl_assert_equal_s("refs/heads/master", git_reference_symbolic_target(head));

git_reference_free(head);
}
1 change: 1 addition & 0 deletions tests/resources/namespace.git/COMMIT_EDITMSG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
four
1 change: 1 addition & 0 deletions tests/resources/namespace.git/HEAD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ref: refs/heads/four
7 changes: 7 additions & 0 deletions tests/resources/namespace.git/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
1 change: 1 addition & 0 deletions tests/resources/namespace.git/description
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
Binary file added tests/resources/namespace.git/index
Binary file not shown.
6 changes: 6 additions & 0 deletions tests/resources/namespace.git/info/exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
9 changes: 9 additions & 0 deletions tests/resources/namespace.git/logs/HEAD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
0000000000000000000000000000000000000000 9ebfa6bdc9d38075d29d26aa5df89b1cf635b269 Edward Thomson <ethomson@edwardthomson.com> 1661110058 -0400 commit (initial): Hello, world.
9ebfa6bdc9d38075d29d26aa5df89b1cf635b269 7eeaa70d7c5592db920a2e107ce3918bd4c8a425 Edward Thomson <ethomson@edwardthomson.com> 1661110068 -0400 commit: with enthusiasm
7eeaa70d7c5592db920a2e107ce3918bd4c8a425 7eeaa70d7c5592db920a2e107ce3918bd4c8a425 Edward Thomson <ethomson@edwardthomson.com> 1661110072 -0400 checkout: moving from main to branch
7eeaa70d7c5592db920a2e107ce3918bd4c8a425 3d669d1b33ec8add4609d8043d025527db4989eb Edward Thomson <ethomson@edwardthomson.com> 1661110088 -0400 commit: capitalize
3d669d1b33ec8add4609d8043d025527db4989eb bfd17f429f4e2d121769213171ad57ca2e5173f9 Edward Thomson <ethomson@edwardthomson.com> 1661110104 -0400 commit: less enthusiastic
bfd17f429f4e2d121769213171ad57ca2e5173f9 7eeaa70d7c5592db920a2e107ce3918bd4c8a425 Edward Thomson <ethomson@edwardthomson.com> 1661110107 -0400 che F42D ckout: moving from branch to main
0000000000000000000000000000000000000000 420d51ce75a87909e29659da2072ffd3d5daf5b7 Edward Thomson <ethomson@edwardthomson.com> 1661110166 -0400 commit (initial): 1 2 3
420d51ce75a87909e29659da2072ffd3d5daf5b7 420d51ce75a87909e29659da2072ffd3d5daf5b7 Edward Thomson <ethomson@edwardthomson.com> 1661110209 -0400 checkout: moving from one to four
420d51ce75a87909e29659da2072ffd3d5daf5b7 04433ff5b52d6ad534fd6288de4a57b81cc12188 Edward Thomson <ethomson@edwardthomson.com> 1661110212 -0400 commit: four
3 changes: 3 additions & 0 deletions tests/resources/namespace.git/logs/refs/heads/branch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0000000000000000000000000000000000000000 7eeaa70d7c5592db920a2e107ce3918bd4c8a425 Edward Thomson <ethomson@edwardthomson.com> 1661110072 -0400 branch: Created from HEAD
7eeaa70d7c5592db920a2e107ce3918bd4c8a425 3d669d1b33ec8add4609d8043d025527db4989eb Edward Thomson <ethomson@edwardthomson.com> 1661110088 -0400 commit: capitalize
3d669d1b33ec8add4609d8043d025527db4989eb bfd17f429f4e2d121769213171ad57ca2e5173f9 Edward Thomson <ethomson@edwardthomson.com> 1661110104 -0400 commit: less enthusiastic
2 changes: 2 additions & 0 deletions tests/resources/namespace.git/logs/refs/heads/four
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0000000000000000000000000000000000000000 420d51ce75a87909e29659da2072ffd3d5daf5b7 Edward Thomson <ethomson@edwardthomson.com> 1661110209 -0400 branch: Created from HEAD
420d51ce75a87909e29659da2072ffd3d5daf5b7 04433ff5b52d6ad534fd6288de4a57b81cc12188 Edward Thomson <ethomson@edwardthomson.com> 1661110212 -0400 commit: four
2 changes: 2 additions & 0 deletions tests/resources/namespace.git/logs/refs/heads/main
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0000000000000000000000000000000000000000 9ebfa6bdc9d38075d29d26aa5df89b1cf635b269 Edward Thomson <ethomson@edwardthomson.com> 1661110058 -0400 commit (initial): Hello, world.
9ebfa6bdc9d38075d29d26aa5df89b1cf635b269 7eeaa70d7c5592db920a2e107ce3918bd4c8a425 Edward Thomson <ethomson@edwardthomson.com> 1661110068 -0400 commit: with enthusiasm
1 change: 1 addition & 0 deletions tests/resources/namespace.git/logs/refs/heads/one
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000000000000000000000000000000000000000 420d51ce75a87909e29659da2072ffd3d5daf5b7 Edward Thomson <ethomson@edwardthomson.com> 1661110166 -0400 commit (initial): 1 2 3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x��Q
�0D��)re�&�D��^`��ЂiJ���*�����`�TK������*�%E��1#!zˀ!aH�����,���*s�(B�������h���$]4a`�9�=�XW}�'���c-�:�l�����vH����{c @z@mt;����h�ݦ��7-)Q
Binary file not shown.
10000
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x��]� �}�{Ͳ
�1�x/��4��P�^_4����o2� %�i<����} l=�bf��G�$M� ��Sd���.��M���,�:��d�u���2LFiO� ��\*<��5�s.y++\S�uO���.��Hc�����D�i?�ҟ3�X� ���o oY�wR�
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x��]
�0�}�)��������@��҂5��x}�x�f����eY�ƛ]�"��"���@c`�2��֋M.{"����ʣ��"��Zɔ�]�Ȅ�2�͑)ʠ�ڧR�ʯTnSYZy�I6�I��v�e9�Ak���!��n�]��Qwi6�imsj}����R�
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions tests/resources/namespace.git/refs/heads/branch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bfd17f429f4e2d121769213171ad57ca2e5173f9
1 change: 1 addition & 0 deletions tests/resources/namespace.git/refs/heads/main
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7eeaa70d7c5592db920a2e107ce3918bd4c8a425
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
04433ff5b52d6ad534fd6288de4a57b81cc12188
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
420d51ce75a87909e29659da2072ffd3d5daf5b7
0