Merge branch 'rs/http-push-cleanup'
Code clean-up. * rs/http-push-cleanup: http-push: don't check return value of lookup_unknown_object()
This commit is contained in:
commit
bbde4a987d
@ -1431,11 +1431,9 @@ static void one_remote_ref(const char *refname)
|
|||||||
*/
|
*/
|
||||||
if (repo->can_update_info_refs && !has_object_file(&ref->old_oid)) {
|
if (repo->can_update_info_refs && !has_object_file(&ref->old_oid)) {
|
||||||
obj = lookup_unknown_object(ref->old_oid.hash);
|
obj = lookup_unknown_object(ref->old_oid.hash);
|
||||||
if (obj) {
|
fprintf(stderr, " fetch %s for %s\n",
|
||||||
fprintf(stderr, " fetch %s for %s\n",
|
oid_to_hex(&ref->old_oid), refname);
|
||||||
oid_to_hex(&ref->old_oid), refname);
|
add_fetch_request(obj);
|
||||||
add_fetch_request(obj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ref->next = remote_refs;
|
ref->next = remote_refs;
|
||||||
|
Loading…
Reference in New Issue
Block a user