Don't duplicate state that's only used when fetching.
We don't need memset here.
Merge pull request #2048 from arthurschreiber/arthur/add-git_remote_dup

Implement @cmn's suggestions for `git_remote_dup`.