remote: prune refs when fetching

remote: prune refs when fetching

see also https://github.com/libgit2/libgit2/issues/2576
bool is not C89, this should be an int.