From: Carlos Martín Nieto Date: Sat, 15 Oct 2011 05:04:26 +0000 (+0200) Subject: fetch: treat --tags like refs/tags/*:refs/tags/* when pruning X-Git-Tag: v1.7.7.2~7^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e8c1e6c796c1b96b6b208bbd4bc8cfd9acb481b5?ds=inline;hp=e8c1e6c796c1b96b6b208bbd4bc8cfd9acb481b5 fetch: treat --tags like refs/tags/*:refs/tags/* when pruning 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 Signed-off-by: Junio C Hamano ---