Only request advertised include-tags if we want tags
commit5e47b724b90370cdd1afa79de8b3c104c073dcdd
authorShawn O. Pearce <spearce@spearce.org>
Sat, 17 May 2008 02:45:51 +0000 (16 22:45 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 17 May 2008 04:01:48 +0000 (17 00:01 -0400)
tree49462ebb4fcce14991e3a5f33204ab3d895f7a88
parent45e93efe21e44fe02d4edc255d3f741538c18aa2
Only request advertised include-tags if we want tags

If we are using the native git pack transport and the other side
has advertised that it can include tags for us if the peeled ref
points to an object it has already packed to send us we may not
want it to perform that packing for us if we are not going to be
fetching annotated tags at this time.  So we now only enable the
include-tags protocol option if some form of tag fetching was
set on the transport instance we are being created from.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/transport/PackFetchConnection.java