Skip to content

Commit

Permalink
Update git-core to v2.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Jan 25, 2022
1 parent d573fca commit 612e11d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 19 deletions.
5 changes: 3 additions & 2 deletions CI/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


MERCURIAL_VERSION = '5.9.1'
GIT_VERSION = '2.34.1'
GIT_VERSION = '2.35.0'

ALL_MERCURIAL_VERSIONS = (
'1.9.3', '2.0.2', '2.1.2', '2.2.3', '2.3.2', '2.4.2', '2.5.4',
Expand Down Expand Up @@ -65,7 +65,8 @@ def __init__(self, os_and_version):
'v{}'.format(version)
) + [
'make -C repo -j$({}) install prefix=/ NO_GETTEXT=1'
' NO_OPENSSL=1 NO_TCLTK=1 DESTDIR=$PWD/git'.format(
' NO_OPENSSL=1 NO_TCLTK=1 NO_UNCOMPRESS2=1'
' DESTDIR=$PWD/git'.format(
nproc(build_image)),
'tar -Jcf $ARTIFACTS/git-{}.tar.xz git'
.format(version),
Expand Down
2 changes: 1 addition & 1 deletion git-core
Submodule git-core updated 791 files
2 changes: 1 addition & 1 deletion helper/GIT-VERSION.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GIT_VERSION ?= v2.34.1
GIT_VERSION ?= v2.35.0
WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1
5 changes: 5 additions & 0 deletions helper/cinnabar-fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,13 @@ static void do_set(struct string_list *args)
}
}

#ifdef _WIN32
int write_object_file_flags(const void *buf, size_t len, const char *type,
struct object_id *oid, unsigned flags)
#else
int write_object_file_flags(const void *buf, unsigned long len, const char *type,
struct object_id *oid, unsigned flags)
#endif
{
struct strbuf data;
enum object_type t;
Expand Down
5 changes: 1 addition & 4 deletions helper/cinnabar-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,13 +2411,10 @@ static void init_git_config()
* might be important configuration items there (like http.sslcainfo
* on git for windows).
* Trick git into giving us the path to it system gitconfig. */
const char *argv[] = {
"git", "config", "--system", "-e", NULL
};
if (env && *env) {
setup_path();
}
proc.argv = argv;
strvec_pushl(&proc.args, "git", "config", "--system", "-e", NULL);
strvec_push(&proc.env_array, "GIT_EDITOR=echo");
proc.no_stdin = 1;
proc.no_stderr = 1;
Expand Down
2 changes: 1 addition & 1 deletion helper/cinnabar-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void pipe_writer(struct writer *writer, const char **argv) {

writer_close(writer);
child_process_init(&context->proc);
context->proc.argv = argv;
strvec_pushv(&context->proc.args, argv);
context->proc.in = -1;
context->proc.out = fileno((FILE*)writer->context);
context->proc.no_stderr = 1;
Expand Down
2 changes: 1 addition & 1 deletion helper/hg-connect-stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ struct hg_connection *hg_connect_stdio(const char *url, int flags)
if (looks_like_command_line_option(path))
die("strange pathname '%s' blocked", path);

proc->env = local_repo_env;
strvec_pushv(&proc->env_array, (const char **)local_repo_env);
proc->use_shell = 1;
proc->in = proc->out = proc->err = -1;

Expand Down
18 changes: 9 additions & 9 deletions helper/object-file.c.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/object-file.c b/object-file.c
index c3d866a287..904149ce90 100644
index 8be57f48de..52315414f3 100644
--- a/object-file.c
+++ b/object-file.c
@@ -1954,7 +1954,7 @@ static int freshen_packed_object(const struct object_id *oid)
return 1;
}
@@ -34,6 +34,8 @@
#include "promisor-remote.h"
#include "submodule.h"

+#define write_object_file_flags real_write_object_file_flags
+
/* The maximum size for an object header. */
#define MAX_HEADER_LEN 32

-int write_object_file_flags(const void *buf, unsigned long len,
+int real_write_object_file_flags(const void *buf, unsigned long len,
const char *type, struct object_id *oid,
unsigned flags)
{

0 comments on commit 612e11d

Please sign in to comment.