merge(3p/git): Merge git subtree at v2.29.2
This also bumps the stable nixpkgs to 20.09 as of 2020-11-21, because there is some breakage in the git build related to the netrc credentials helper which someone has taken care of in nixpkgs. The stable channel is not used for anything other than git, so this should be fine. Change-Id: I3575a19dab09e1e9556cf8231d717de9890484fb
This commit is contained in:
parent
082c006c04
commit
f4609b896f
1485 changed files with 241535 additions and 109418 deletions
7
third_party/git/replace-object.h
vendored
7
third_party/git/replace-object.h
vendored
|
@ -24,12 +24,17 @@ const struct object_id *do_lookup_replace_object(struct repository *r,
|
|||
* name (replaced recursively, if necessary). The return value is
|
||||
* either sha1 or a pointer to a permanently-allocated value. When
|
||||
* object replacement is suppressed, always return sha1.
|
||||
*
|
||||
* Note: some thread debuggers might point a data race on the
|
||||
* replace_map_initialized reading in this function. However, we know there's no
|
||||
* problem in the value being updated by one thread right after another one read
|
||||
* it here (and it should be written to only once, anyway).
|
||||
*/
|
||||
static inline const struct object_id *lookup_replace_object(struct repository *r,
|
||||
const struct object_id *oid)
|
||||
{
|
||||
if (!read_replace_refs ||
|
||||
(r->objects->replace_map &&
|
||||
(r->objects->replace_map_initialized &&
|
||||
r->objects->replace_map->map.tablesize == 0))
|
||||
return oid;
|
||||
return do_lookup_replace_object(r, oid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue