Skip to content

Commit

Permalink
Update git-core to v2.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Aug 17, 2019
1 parent 2254764 commit 567078f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CI/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


MERCURIAL_VERSION = '5.0'
GIT_VERSION = '2.22.1'
GIT_VERSION = '2.23.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
2 changes: 1 addition & 1 deletion git-core
Submodule git-core updated from 75b2f0 to 5fa0f5
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.22.1
GIT_VERSION ?= v2.23.0
WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1
3 changes: 2 additions & 1 deletion helper/cinnabar-fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ static uintmax_t parse_mark_ref(const char *p, char **endptr)
if (path_end) {
unsigned short mode;
char *path = xstrndup(*endptr, path_end - *endptr);
if (!get_tree_entry(note, path, &git_oid, &mode))
if (!get_tree_entry(the_repository, note, path,
&git_oid, &mode))
note = &git_oid;
else
note = &empty_tree;
Expand Down
10 changes: 5 additions & 5 deletions helper/cinnabar-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ static void upgrade_manifest_tree_v1(const struct object_id *tree_id,
struct oid_map_entry k, *old2new;

oidcpy(&k.old_oid, tree_id);
hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
old2new = hashmap_get(cache, &k, NULL);
if (!old2new) {
struct strbuf tree_buf = STRBUF_INIT;
Expand Down Expand Up @@ -1756,7 +1756,7 @@ static void upgrade_manifest(struct commit *commit,
struct oid_map_entry k;
struct commit *p;
oidcpy(&k.old_oid, &commit->parents->item->object.oid);
hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
entry = hashmap_get(&track->commit_cache, &k, NULL);
if (!entry)
die("Something went wrong");
Expand Down Expand Up @@ -1792,7 +1792,7 @@ static void upgrade_manifest(struct commit *commit,
struct oid_map_entry k;
if (get_oid_hex(cursor, &k.old_oid))
die("Invalid sha1");
hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
entry = hashmap_get(&track->commit_cache, &k, NULL);
if (!entry)
die("Something went wrong");
Expand All @@ -1802,7 +1802,7 @@ static void upgrade_manifest(struct commit *commit,
}

entry = xmalloc(sizeof(*entry));
hashmap_entry_init(&entry->ent, sha1hash(commit->object.oid.hash));
hashmap_entry_init(&entry->ent, oidhash(&commit->object.oid));
oidcpy(&entry->old_oid, &commit->object.oid);
store_git_commit(&new_commit, &entry->new_oid);
hashmap_add(&track->commit_cache, entry);
Expand Down Expand Up @@ -1958,7 +1958,7 @@ static void recurse_create_git_tree(const struct object_id *tree_id,
{
struct oid_map_entry k, *cache_entry;

hashmap_entry_init(&k.ent, sha1hash(tree_id->hash));
hashmap_entry_init(&k.ent, oidhash(tree_id));
oidcpy(&k.old_oid, tree_id);
cache_entry = hashmap_get(cache, &k, NULL);
if (!cache_entry) {
Expand Down

0 comments on commit 567078f

Please sign in to comment.