remote.c: minor clean-up of match_explicit()
commit3c8b7df1ba6dd2093672afc460fd5de0e755f162
authorJunio C Hamano <gitster@pobox.com>
Sat, 9 Jun 2007 07:14:04 +0000 (9 00:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 Jun 2007 18:53:01 +0000 (9 11:53 -0700)
tree2c45f71784d191eedb366852e1842349a0d45690
parent163f0ee5ad0a5cb7d862431479c270ae3fef79cf
remote.c: minor clean-up of match_explicit()

When checking what ref the source refspec matches, we have no
business setting the default for the destination, so move that
code lower.  Also simplify the result from the code block that
matches the source side by making it set matched_src only upon
unambiguous match.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c