Commit Graph

15650 Commits

Author SHA1 Message Date
Edward Thomson
ffdacef6ff ci: update codeql nighly build 2024-09-27 12:22:49 +02:00
Edward Thomson
0dc5e4afec Merge pull request #6876 from yerseg/report_push_status_in_case_of_fail
push: report a push status even the push has failed
2024-09-27 12:10:50 +02:00
Edward Thomson
910f754aa3 Merge pull request #6893 from libgit2/ethomson/ios
stransport: initialize for iOS
2024-09-27 12:08:20 +02:00
Edward Thomson
9919b3a52b stransport: initialize for iOS
The unused variables in the stransport code should be initialized to
avoid compiler warnings. :eyeroll:
2024-09-27 11:12:22 +02:00
Edward Thomson
38eee393b9 Merge pull request #6886 from libgit2/ethomson/preciousobjects
repo: support the preciousObjects extension
2024-09-26 21:30:06 +02:00
Edward Thomson
d19558ac9b Merge pull request #6862 from Kyle-Ye/optimize/ios
Add SecCopyErrorMessageString for iOS and update README for iOS
2024-09-26 21:29:35 +02:00
Edward Thomson
784c667f0e Merge pull request #6891 from libgit2/ethomson/stransport
Update stransport.c
2024-09-26 21:27:19 +02:00
Edward Thomson
f27bbe0328 Update stransport.c
stransport: correct unused on ios
2024-09-26 17:40:44 +02:00
Edward Thomson
41f6f72910 iOS Updates
Some minor refactoring for iOS:

- Roll back clar changes; these should be a bit more measured, and occur
  in clar upstream.
- Move iOS to nightly builds
2024-09-26 16:59:53 +02:00
Edward Thomson
851628facf Merge remote-tracking branch 'origin/main' into securetransport 2024-09-26 16:48:35 +02:00
Edward Thomson
17c4100592 Merge branch 'securetransport' 2024-09-26 16:45:44 +02:00
Edward Thomson
d3d9b8da6d stransport: updates for stransport errors
Minor refactorings to the stransport error conditions.
2024-09-26 16:45:16 +02:00
Edward Thomson
9f3406163b Merge pull request #6804 from libgit2/ethomson/config_entry
config: remove `free` ptr from `git_config_entry`
2024-09-25 11:24:48 +02:00
Edward Thomson
15668ba520 Merge pull request #6888 from libgit2/cmn/print-header-alternative 2024-09-25 09:36:56 +02:00
Edward Thomson
75e670d4ce Merge pull request #6874 from roberth/packbuilder-interruptible
Make packbuilder interruptible using progress callback
2024-09-25 09:19:05 +02:00
Carlos Martín Nieto
79fec1ada0 diff: print the file header on GIT_DIFF_FORMAT_PATCH_HEADER
In `diff_print_patch_file` we try to avoid printing the file if we're not sure
that there will be some content. This works fine if we have any later functions
that might get called as part of printing. But when given the format
`GIT_DIFF_FORMAT_PATCH_HEADER`, this is the only function to get called.

Add the binary and hunk functions to those to be called when given this option
and have them exit after printing the header. This takes care of printing the
header if we would be issuing a hunk, but we skip that part.
2024-09-24 21:27:03 +02:00
Carlos Martín Nieto
a8779b2b67 diff: add a test for printing just the header
This was a regression leading up to 1.8.
2024-09-24 19:26:57 +02:00
Edward Thomson
b139fe04a4 repo: support the preciousObjects extension
libgit2 implicitly supports precious objects, since there's no gc
command, nor even any option in our object database functionality to
delete an object from the odb.

In the future, when we support deleting objects, or a gc functionality,
we will need to honor the preciousObjects extension and reject those
APIs when it is set. In the meantime, since users cannot use libgit2
(directly) to delete an object, we can simply add this to our allowlist.
2024-09-24 18:01:14 +02:00
Edward Thomson
cb0bf67726 Merge pull request #6845 from jayong93/no-default-ssh-port 2024-09-22 07:38:59 +01:00
Jaeyong Choi
d2389b2caa ssh: Omit port option from ssh command unless specified in remote url
Omit `-p 22` option from ssh command by default.
Adding `-p 22` option when a port is not in a remote url causes that
`Port` option in a ssh config is ignored.
2024-09-22 12:32:53 +09:00
lstoppa
34432d99e7 Fix leak in truncate_racily_clean in index.c
In truncate_racily_clean, when git_diff_index_to_workdir fails,
we leak the local variable git_vector paths.
2024-09-20 22:22:59 +01:00
Sergey Kazmin
152e2beef6 fix 2024-09-06 14:41:48 +03:00
Sergey Kazmin
a65fa02877 push: report a push status even the push has failed 2024-09-06 13:43:18 +03:00
Kyle
10c424ffc3 Skip all test on iOS temporarily 2024-09-06 00:42:44 +08:00
Kyle
b83d55c755 Fix rt linker issue 2024-09-06 00:42:44 +08:00
Kyle
7fb1c8edcf Fix system API issue 2024-09-06 00:42:44 +08:00
Kyle
871208e991 Fix iconv link issue 2024-09-05 13:53:14 +08:00
Kyle
841164ec39 Fix regcomp_l compile issue 2024-09-05 00:07:31 +08:00
Kyle
07bb47ca5c Fix CI toolchain file location issue 2024-09-05 00:07:31 +08:00
Kyle
60cdd25709 Align the iOS CI’s host OS version to fix the permission issue 2024-09-05 00:07:31 +08:00
Kyle
06a9dc995a Add iOS CI support 2024-09-05 00:07:30 +08:00
Kyle
8957d36228 Add SecCopyErrorMessageString API when building for iOS
SecCopyErrorMessageString is supported since iOS 11.3.

I believe we do not need to use #if check here since the default IPHONEOS_DEPLOYMENT_TARGET is iOS 13.0 for Xcode 15.3.
2024-09-05 00:07:30 +08:00
Kyle
4b63eb5dc8 Fix iOS build issue 2024-09-05 00:07:30 +08:00
Kyle
e5da88135c Add iOS build instruction in README 2024-09-05 00:07:29 +08:00
Edward Thomson
403a03b3be Merge pull request #6870 from civodul/fix-uninitialized-http-parser-proxy-settings
http: Initialize ‘on_status’ when using the http-parser backend.
2024-09-03 22:15:19 +01:00
Edward Thomson
637d2499d7 Merge pull request #6860 from Kyle-Ye/optimize/readme
Update README.md
2024-09-03 22:10:31 +01:00
Robert Hensing
ab1b7aded5 Make packbuilder interruptible using progress callback
Specifically, forward errors from packbuilder->progress_cb

This allows the callback to gracefully terminate long-running
operations when the application is interrupted.

Interruption could be ^C in the terminal, but this could be any
other condition or event, as this is up to the callback function
to implement.
2024-09-02 17:09:13 +02:00
Ludovic Courtès
e3597e9ff5 Apply suggestions from code review
Co-authored-by: Edward Thomson <ethomson@edwardthomson.com>
2024-08-29 20:38:55 +00:00
Ludovic Courtès
ea7e18eef5 http: Initialize ‘on_status’ when using the http-parser backend.
Fixes a bug likely introduced in
d396819101 (in 1.8.1) whereby
‘proxy_settings.on_status’ would be left uninitialized when using the
‘http-parser’ backend, eventually leading to a segfault in
‘http_parser_execute’.  Valgrind would report use of the uninitialized
value like so:

   Conditional jump or move depends on uninitialised value(s)
      at 0x50CD533: http_parser_execute (http_parser.c:910)
      by 0x4928504: git_http_parser_execute (httpparser.c:82)
      by 0x4925C42: client_read_and_parse (httpclient.c:1178)
      by 0x4926F27: git_http_client_read_response (httpclient.c:1458)
      by 0x49255FE: http_stream_read (http.c:427)
      by 0x4929B90: git_smart__recv (smart.c:29)
      by 0x492C147: git_smart__store_refs (smart_protocol.c:58)
      by 0x4929F6C: git_smart__connect (smart.c:171)
      by 0x4904DCE: git_remote_connect_ext (remote.c:963)
      by 0x48A15D2: clone_into (clone.c:449)
      by 0x48A15D2: git__clone (clone.c:546)
      by 0x4010E9: main (libgit2-proxy.c:20)
2024-08-29 12:23:04 +02:00
Edward Thomson
782e29c906 ci: only publish benchmarks from libgit2/libgit2
Benchmark runs are trying to be pushed from repos that _aren't_
libgit2/libgit2. Try again with the syntax.
2024-08-22 13:10:29 +01:00
Kyle
c48536607a Update macOS section of README.md 2024-08-17 17:20:38 +08:00
Kyle
30f92e8345 Fix small issue on README 2024-08-17 17:14:40 +08:00
Edward Thomson
4d38f13619 Merge pull request #6859 from Kyle-Ye/patch-1 2024-08-16 12:09:42 +01:00
Kyle
ed520ff805 Fix contradictory phrase in SECURITY.md 2024-08-16 16:41:17 +08:00
Edward Thomson
503b66cf00 Merge pull request #6853 from BenJam/patch-1
Create FUNDING.json
2024-07-17 10:40:36 +01:00
Benjamin Nickolls
3f6177e634 Create FUNDING.json
Add Open Source Collective-owned wallet address to claim project on Drips
2024-07-17 10:38:12 +01:00
Edward Thomson
2ecc8586f7 Merge pull request #6851 from libgit2/ethomson/url_ports 2024-07-13 16:37:11 +01:00
Venus Xeon-Blonde
bedd730d9b Merge remote-tracking branch 'origin/main' 2024-07-12 17:47:03 -04:00
Venus Xeon-Blonde
c77c598c60 Add tracing info to specific SecureTransport error caused by SSLRead returning -9806. 2024-07-12 17:46:28 -04:00
Venus Xeon-Blonde
0db62c889c Use git__malloc and git__free over malloc and free 2024-07-12 16:28:06 -04:00