net: refactor gitno redirect handling Move the redirect handling into `git_net_url` for consistency.