summaryrefslogtreecommitdiff
path: root/tests/libgit2
Commit message (Collapse)AuthorAgeFilesLines
* Added missing is_prunable testReginald McLean2023-05-161-0/+13
|
* clone: skip timeout tests on WinHTTPethomson/timeoutsEdward Thomson2023-05-131-0/+16
|
* streams: sockets are non-blocking and can timeoutEdward Thomson2023-05-132-1/+61
| | | | | | | | | | | | | | | Make socket I/O non-blocking and add optional timeouts. Users may now set `GIT_OPT_SET_SERVER_CONNECT_TIMEOUT` to set a shorter connection timeout. (The connect timeout cannot be longer than the operating system default.) Users may also now configure the socket read and write timeouts with `GIT_OPT_SET_SERVER_TIMEOUT`. By default, connects still timeout based on the operating system defaults (typically 75 seconds) and socket read and writes block. Add a test against our custom testing git server that ensures that we can timeout reads against a slow server.
* net: move rfc2818 hostname / wildcard matching to utilEdward Thomson2023-05-131-13/+0
|
* Merge pull request #6557 from libgit2/ethomson/shallowEdward Thomson2023-05-096-2/+670
|\ | | | | Shallow (#6396) with some fixes from review
| * fetch: remove `unshallow` optionEdward Thomson2023-05-091-1/+1
| | | | | | | | | | The `depth` field is suitable to specify unshallowing; provide an enum to aide in specifying the `unshallow` value.
| * oid: use an oid array instead of shallowarrayEdward Thomson2023-05-093-68/+117
| | | | | | | | | | | | Users should provide us an array of object ids; we don't need a separate type. And especially, we should not be mutating user-providing values. Instead, use `git_oid *` in the shallow code.
| * shallow: cleanup whitespace in testsEdward Thomson2023-05-081-16/+16
| |
| * grafts: handle SHA256 graft filesEdward Thomson2023-05-082-2/+2
| |
| * transport: transports understand oid typeEdward Thomson2023-04-251-2/+2
| | | | | | | | Teach the smart transport more about oid types, instead of assuming SHA1.
| * shallow: move tests to onlineEdward Thomson2023-04-241-12/+4
| |
| * shallow: remove feature flagEdward Thomson2023-04-243-16/+0
| | | | | | | | | | The opt mechanism isn't _really_ meant to be for feature flags, and it's weird to feature flag shallow / unshallow at all.
| * Merge remote-tracking branch 'origin/main' into shallow-clone-networkEdward Thomson2023-04-2234-134/+1488
| |\
| * \ Merge commit 'd066d0d95c43e97df6624292f3f527f9372ca8fe'lmcglash2023-03-1050-1901/+1821
| |\ \
| * | | refactor grafts testsYuang Li2022-09-063-9/+9
| | | |
| * | | remove unused statementsYuang Li2022-09-051-1/+0
| | | |
| * | | fix seg faultsYuang Li2022-09-052-1/+3
| | | |
| * | | fix free errorYuang Li2022-08-311-2/+0
| | | |
| * | | fix shallowarray testYuang Li2022-08-311-3/+3
| | | |
| * | | support fetch unshallow option on shallow reposyuangli2022-08-092-0/+93
| | | |
| * | | edit tests for shallow clonesyuangli2022-08-021-10/+38
| | | |
| * | | fix clone::shallow test behaviouryuangli2022-07-291-1/+1
| | | |
| * | | eliminate build warningsyuangli2022-07-291-0/+105
| | | |
| * | | Merge branch 'mw_dev' into shallow-clone-localYuang Li2022-07-29168-1123/+1738
| |\ \ \
| * | | | eliminate build warningsyuangli2022-07-273-0/+418
| | | | |
* | | | | sha256: wrap_odb supports SHA256Edward Thomson2023-05-063-3/+4
| | | | |
* | | | | odb: test object lookups from git_repository_wrap_odbEdward Thomson2023-05-061-1/+20
| |_|_|/ |/| | |
* | | | Merge pull request #6549 from libgit2/ethomson/sha256_experimentalEdward Thomson2023-04-2228-124/+1344
|\ \ \ \ | | | | | | | | | | sha256: less hardcoded SHA1 types and lengths
| * | | | commit graph: support sha256Edward Thomson2023-04-101-2/+15
| | | | |
| * | | | midx: support sha256Edward Thomson2023-04-101-1/+6
| | | | |
| * | | | diff: parse patches with sha256Edward Thomson2023-04-1012-73/+97
| | | | |
| * | | | index: add sha256 supportEdward Thomson2023-04-1014-48/+1226
| | | | |
* | | | | config: return `GIT_ENOTFOUND` for missing programdataEdward Thomson2023-04-111-0/+11
|/ / / / | | | | | | | | | | | | | | | | | | | | When the programdata path is missing, ensure that we pass down the `GIT_ENOTFOUND` error to the caller instead of converting it to a generic `-1`.
* | | | repo: honor GIT_CONFIG_* environment variablesEdward Thomson2023-04-041-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_CONFIG_GLOBAL`, `GIT_CONFIG_SYSTEM` and `GIT_CONFIG_NOSYSTEM` environment variables.
* | | | repo: honor GIT_COMMON_DIR when respecting envEdward Thomson2023-04-041-0/+20
| | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_COMMON_DIR` environment variable.
* | | | repo: honor GIT_WORK_TREE environment variableEdward Thomson2023-04-041-0/+20
| | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_WORK_TREE` environment variable.
* | | | repo: free data in the discovery testsEdward Thomson2023-04-041-0/+3
| | | | | | | | | | | | | | | | Shocked that our leak checkers didn't find this earlier.
* | | | Merge pull request #6505 from libgit2/ethomson/extension_madnessEdward Thomson2023-03-271-6/+23
|\ \ \ \ | | | | | | | | | | repo: don't allow repeated extensions
| * | | | repo: don't allow repeated extensionsEdward Thomson2023-02-251-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user attempts to add a custom extension that the system already supports, or that is already in their list of custom extensions, de-dup it.
* | | | | http: introduce schannel streams for windowsEdward Thomson2023-03-212-4/+15
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a stream interface for Schannel - the native crypto APIs - on Windows. This allows Windows to use the same HTTP transport that all the other platforms use, with its own native crypto. Ultimately this allows us to deprecate WinHTTP and we need not add support for our socket changes in two places (our HTTP stack and the WinHTTP stack).
* | | | index: test `git_index_add_all` with forceEdward Thomson2023-03-021-0/+23
| | | | | | | | | | | | | | | | | | | | Ensure that when all files beneath a directory are ignored that we add the files when FORCE is specified.
* | | | index: test `git_index_add_all` with ignored folderEdward Thomson2023-03-021-0/+23
| | | | | | | | | | | | | | | | | | | | Ensure that when all files beneath a directory are ignored that we actually ignore the files.
* | | | odb: restore `git_odb_open`Edward Thomson2023-03-011-0/+34
| | | | | | | | | | | | | | | | | | | | `git_odb_open` was erroneously removed during a refactoring; add it back.
* | | | Merge pull request #6512 from libgit2/ethomson/odb_looseEdward Thomson2023-02-271-0/+43
|\ \ \ \
| * | | | odb: test git_odb_backend_looseEdward Thomson2023-02-271-0/+43
| |/ / /
* | | | Revert "tests: validate host and port for ssh tests when non-standard"Edward Thomson2023-02-271-11/+1
|/ / / | | | | | | | | | This reverts commit 43e84e246cc716ac51a276945b5b112b21d802d1.
* | | tests: validate host and port for ssh tests when non-standardEdward Thomson2023-02-241-1/+11
| | |
* | | tests: always unset HTTP_PROXY before starting testsEdward Thomson2023-02-231-21/+15
| | | | | | | | | | | | | | | | | | The remote::httpproxy::env test (correctly) reset the environment before running; however the other tests are also impacted by the environment and need to have it isolated.
* | | #6491: Sets oid_type on repos open with git_repository_open_bareMiguel Arroz2023-02-171-0/+3
| | |
* | | Merge pull request #6330 from gitkraken-jacobw/partial-stashingEdward Thomson2023-02-162-0/+42
|\ \ \ | | | | | | | | stash: partial stash specific files