mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "cache.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
7258e892d2
commit
d850b7a545
@@ -1081,7 +1081,7 @@ static int push_refs_with_export(struct transport *transport,
|
||||
struct object_id oid;
|
||||
|
||||
private = apply_refspecs(&data->rs, ref->name);
|
||||
if (private && !get_oid(private, &oid)) {
|
||||
if (private && !repo_get_oid(the_repository, private, &oid)) {
|
||||
strbuf_addf(&buf, "^%s", private);
|
||||
string_list_append_nodup(&revlist_args,
|
||||
strbuf_detach(&buf, NULL));
|
||||
|
||||
Reference in New Issue
Block a user