diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-19 23:55:00 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-19 23:55:00 (GMT) |
commit | 36a255acd14779ef21747b56341796e18c229976 (patch) | |
tree | d7b0215e9e11a7c6a0f928be492f47a27bce1356 /ref-filter.c | |
parent | bdff0419da0e81a6fb957d38fd6cff06e3ffb4e3 (diff) | |
parent | 1e1c4c5eac972516db47394ae94a52a3b97cb41a (diff) | |
download | git-36a255acd14779ef21747b56341796e18c229976.zip git-36a255acd14779ef21747b56341796e18c229976.tar.gz git-36a255acd14779ef21747b56341796e18c229976.tar.bz2 |
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 e2eac50..97116e1 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/", |