revert(3p/git): Revert merge of git upstream at v2.26.2
This causes cgit to serve error pages, which is undesirable. This reverts commit5229c9b232, reversing changes made tof2b211131f.
This commit is contained in:
parent
6f8fbf4aa4
commit
93ba78d6f4
1006 changed files with 60537 additions and 148724 deletions
11
third_party/git/replace-object.c
vendored
11
third_party/git/replace-object.c
vendored
|
|
@ -34,23 +34,14 @@ static int register_replace_ref(struct repository *r,
|
|||
|
||||
void prepare_replace_object(struct repository *r)
|
||||
{
|
||||
if (r->objects->replace_map_initialized)
|
||||
if (r->objects->replace_map)
|
||||
return;
|
||||
|
||||
pthread_mutex_lock(&r->objects->replace_mutex);
|
||||
if (r->objects->replace_map_initialized) {
|
||||
pthread_mutex_unlock(&r->objects->replace_mutex);
|
||||
return;
|
||||
}
|
||||
|
||||
r->objects->replace_map =
|
||||
xmalloc(sizeof(*r->objects->replace_map));
|
||||
oidmap_init(r->objects->replace_map, 0);
|
||||
|
||||
for_each_replace_ref(r, register_replace_ref, NULL);
|
||||
r->objects->replace_map_initialized = 1;
|
||||
|
||||
pthread_mutex_unlock(&r->objects->replace_mutex);
|
||||
}
|
||||
|
||||
/* We allow "recursive" replacement. Only within reason, though */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue