Merge branch 'dr/ref-filter-push-track-fix'
%(push:track) token used in the --format option to "git for-each-ref" and friends was not showing the right branch, which has been fixed. * dr/ref-filter-push-track-fix: ref-filter: use correct branch for %(push:track)
This commit is contained in:
@ -1392,7 +1392,8 @@ static void fill_remote_ref_details(struct used_atom *atom, const char *refname,
|
||||
*s = show_ref(&atom->u.remote_ref.refname, refname);
|
||||
else if (atom->u.remote_ref.option == RR_TRACK) {
|
||||
if (stat_tracking_info(branch, &num_ours, &num_theirs,
|
||||
NULL, AHEAD_BEHIND_FULL) < 0) {
|
||||
NULL, atom->u.remote_ref.push,
|
||||
AHEAD_BEHIND_FULL) < 0) {
|
||||
*s = xstrdup(msgs.gone);
|
||||
} else if (!num_ours && !num_theirs)
|
||||
*s = xstrdup("");
|
||||
@ -1410,7 +1411,8 @@ static void fill_remote_ref_details(struct used_atom *atom, const char *refname,
|
||||
}
|
||||
} else if (atom->u.remote_ref.option == RR_TRACKSHORT) {
|
||||
if (stat_tracking_info(branch, &num_ours, &num_theirs,
|
||||
NULL, AHEAD_BEHIND_FULL) < 0) {
|
||||
NULL, atom->u.remote_ref.push,
|
||||
AHEAD_BEHIND_FULL) < 0) {
|
||||
*s = xstrdup("");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user