Make --prune a configurable parameter in fetching a git remote
EE port of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17346
By default, --prune is added to the command-line of a git fetch operation, but for a new clone, this prune step isn't necessary. This change allows for that but does not actually change current behavior.