commit | e6f637122ecd60c59df27b8188b6ddac39ac0063 | [log] [tgz] |
---|---|---|
author | Carlos Martín Nieto <cmn@dwim.me> | Thu Feb 27 10:00:10 2014 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Mar 26 12:57:52 2014 -0700 |
tree | 444fa9d30b7ef7905e4dce9006ae03ac40dc22ee | |
parent | f377e7a37c1b28359a228cf5bb43161a8a22b385 [diff] |
fetch: handle overlaping refspecs on --prune We need to consider that a remote-tracking branch may match more than one rhs of a fetch refspec. In such a case, it is not enough to stop at the first match but look at all of the matches in order to determine whether a head is stale. To this goal, introduce a variant of query_refspecs which returns all of the matching refspecs and loop over those answers to check for staleness. Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>