diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-20 08:55:00 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-20 08:55:00 +0900 |
commit | 36a255acd14779ef21747b56341796e18c229976 (patch) | |
tree | d7b0215e9e11a7c6a0f928be492f47a27bce1356 /ref-filter.c | |
parent | Merge branch 'ew/sha256-clone-remote-curl-fix' (diff) | |
parent | ref-filter: fix read invalid union member bug (diff) | |
download | tgif-36a255acd14779ef21747b56341796e18c229976.tar.xz |
Merge branch 'zh/ref-filter-push-remote-fix'
The handling of "%(push)" formatting element of "for-each-ref" and
friends was broken when the same codepath started handling
"%(push:<what>)", which has been corrected.
* zh/ref-filter-push-remote-fix:
ref-filter: fix read invalid union member bug
Diffstat (limited to 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c index e2eac50d95..97116e12d7 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1730,7 +1730,7 @@ static int populate_value(struct ref_array_item *ref, struct strbuf *err) else v->s = xstrdup(""); continue; - } else if (atom->u.remote_ref.push) { + } else if (!strcmp(atom->name, "push") || starts_with(atom->name, "push:")) { const char *branch_name; v->s = xstrdup(""); if (!skip_prefix(ref->refname, "refs/heads/", |