- 14 Dec, 2023 11 commits
-
-
Edward Thomson committed
-
Ensure that we declare variables at the top of the block for broad compatibility with old compilers.
Edward Thomson committed -
push: set generic error in push_negotiation cb
Edward Thomson committed -
release: add a compatibility label
Edward Thomson committed -
Add a compatibility label to the release.yml to describe things that are for improved cross-platform compatibility.
Edward Thomson committed -
When a user returns `-1` in a `push_negotiation` callback, we set the error to whatever's hanging out in the buffer, probably something about a missing configuration entry. Clear the error buffer before invoking the callback, so that if a user does not set an error message in their callback that we can detect. If there is no error but `-1` is returned, set a generic error message.
Edward Thomson committed -
fetch: enable deepening/shortening shallow clones
Edward Thomson committed -
util: suppress some uninitialized variable warnings
Edward Thomson committed -
Avoid macro redefinition of ENABLE_INTSAFE_SIGNED_FUNCTIONS
Edward Thomson committed -
git2: Fix crash when called w/o parameters
Edward Thomson committed -
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 09 Dec, 2023 1 commit
-
-
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 08 Dec, 2023 3 commits
-
-
ci: overwrite nonsense in /usr/local during macOS setup
Edward Thomson committed -
Edward Thomson committed
-
GitHub Actions has borked their homebrew setup by first `brew installing` things into `/usr/local` _and then_ putting their own things in their place (eg `python`). This breaks Homebrew, since it thinks it has `python` installed, but it's actually something else. Try to avoid using things that are in this bad state. https://github.com/orgs/community/discussions/78266
Edward Thomson committed
-
- 06 Dec, 2023 1 commit
-
-
A shallow repository can currently only be completely unshallowed, which is caused by mark_local() only marking locally-existing objects as wanted if the fetch depth is set to INT_MAX (GIT_FETCH_DEPTH_UNSHALLOW). This prevents deepening the history of a shallow clone to an arbitrary number of commits, which may be preferable over full unshallowing for large repositories. Enable deepening and shortening shallow clones by marking locally-existing objects as wanted whenever the fetch depth is set to any non-default value (either GIT_FETCH_DEPTH_UNSHALLOW or an arbitrary positive integer).
Michał Kępień committed
-
- 26 Nov, 2023 4 commits
-
-
Peter Pettersson committed
-
In C99 functions need to be declared before they are defined. We could just add the declarations before them, but including the header allows the compiler to warn if they differ.
Peter Pettersson committed -
Peter Pettersson committed
-
Peter Pettersson committed
-
- 20 Nov, 2023 3 commits
-
-
remote: fix memory leak in git_remote_download()
Edward Thomson committed -
Use #!/bin/bash for script with bash-specific commands
Edward Thomson committed -
Edward Thomson committed
-
- 17 Nov, 2023 1 commit
-
-
Peter Pettersson committed
-
- 31 Oct, 2023 1 commit
-
-
connect_opts is created with its custom_headers and proxy_opts->url possibly allocated on heap, just like in git_remote_fetch(). But unlike in _fetch(), it is not disposed at the end of the function, thus causing memory leak.
7Ji committed
-
- 18 Oct, 2023 1 commit
-
-
remote: optionally report unchanged tips
Edward Thomson committed
-
- 17 Oct, 2023 1 commit
-
-
Edward Thomson committed
-
- 15 Oct, 2023 2 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
- 25 Sep, 2023 1 commit
-
-
Carlos Martín Nieto committed
-
- 19 Sep, 2023 3 commits
-
-
Like in the previous commit and in git, we reject a path that looks like an option to avoid injection into the command we ask the remote to execute.
Carlos Martín Nieto committed -
If you pass along something like `-oProxyCommand=...` as the hostname, we would pass that along to ssh unbeknownst to us and potentially also the user, if they were asking a tool to recursively clone submodules. This is the same fix as mainline git although they don't separate the username and host for ssh so ours looks like it's checking more.
Carlos Martín Nieto committed -
This function returns true if the string starts with a `-` as that could be used to inject options into commands we execute.
Carlos Martín Nieto committed
-
- 05 Sep, 2023 1 commit
-
-
Edward Thomson committed
-
- 03 Sep, 2023 6 commits
-
-
We now have no "big single object" that contains thread state.
Edward Thomson committed -
Now that thread-local error data is handled in error, move the thread local data out of the `threadstate` object, since it has now become useless indirection.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Instead of having a separate type for saving state, we can re-use the `git_error` structure. In practice, saving the error code along with the `git_error` information has not proven necessary or useful, so it can be removed to simplify down to re-using a single structure.
Edward Thomson committed -
Most callers only need to _get_ error messages. Only callers implemented more complicated functions (like a custom ODB for example) need to set them. (Callback users should likely ferry their own error information in their callback payload.)
Edward Thomson committed
-