fetch: treat --tags like refs/tags/*:refs/tags/* when pruning
authorCarlos Martín Nieto <cmn@elego.de>
Sat, 15 Oct 2011 05:04:26 +0000 (07:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Oct 2011 05:00:37 +0000 (22:00 -0700)
If --tags is specified, add that refspec to the list given to
prune_refs so it knows to treat it as a filter on what refs to
should consider for prunning. This way

git fetch --prune --tags origin

only prunes tags and doesn't delete the branch refs.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found