diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:40 -0700 |
commit | 066f6cd44707ca2f8c3dc2a2ae02c2c9784903bf (patch) | |
tree | c999b2444dfcb545f683ce39e6d8d70beae882ea /builtin/fetch.c | |
parent | Merge branch 'es/trace2-log-parent-process-name' (diff) | |
parent | fetch: die on invalid --negotiation-tip hash (diff) | |
download | tgif-066f6cd44707ca2f8c3dc2a2ae02c2c9784903bf.tar.xz |
Merge branch 'jt/push-negotiation-fixes'
Bugfix for common ancestor negotiation recently introduced in "git
push" code path.
* jt/push-negotiation-fixes:
fetch: die on invalid --negotiation-tip hash
send-pack: fix push nego. when remote has refs
send-pack: fix push.negotiate with remote helper
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 25740c13df..e064687dbd 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1428,7 +1428,9 @@ static void add_negotiation_tips(struct git_transport_options *smart_options) if (!has_glob_specials(s)) { struct object_id oid; if (get_oid(s, &oid)) - die("%s is not a valid object", s); + die(_("%s is not a valid object"), s); + if (!has_object(the_repository, &oid, 0)) + die(_("the object %s does not exist"), s); oid_array_append(oids, &oid); continue; } |