Merge branch 'jk/pending-keep-tag-name' into maint

History traversal with "git log --source" that starts with an
annotated tag failed to report the tag as "source", due to an
old regression in the command line parser back in v2.2 days.

* jk/pending-keep-tag-name:
  revision.c: propagate tag names from pending array
This commit is contained in:
Junio C Hamano
2016-01-04 14:03:07 -08:00
2 changed files with 30 additions and 2 deletions

View File

@ -294,9 +294,8 @@ static struct commit *handle_commit(struct rev_info *revs,
/*
* We'll handle the tagged object by looping or dropping
* through to the non-tag handlers below. Do not
* propagate data from the tag's pending entry.
* propagate path data from the tag's pending entry.
*/
name = "";
path = NULL;
mode = 0;
}