author | Junio C Hamano <gitster@pobox.com> | |
Sat, 9 Jun 2007 07:14:04 +0000 (00:14 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 9 Jun 2007 18:53:01 +0000 (11:53 -0700) | ||
commit | 3c8b7df1ba6dd2093672afc460fd5de0e755f162 | |
tree | 2c45f71784d191eedb366852e1842349a0d45690 | tree | snapshot |
parent | 163f0ee5ad0a5cb7d862431479c270ae3fef79cf | commit | diff |
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>
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 | diff | blob | history |