diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-06 00:09:59 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-06 00:26:21 -0800 |
commit | 9e5d2b40967059dd5f35d02fba323751ef22ac4e (patch) | |
tree | 9cc3928769f8f4e3597fa446321112c0568514df /fetch.c | |
parent | Documentation: pull/clone ref mapping clarification. (diff) | |
download | tgif-9e5d2b40967059dd5f35d02fba323751ef22ac4e.tar.xz |
git-fetch: fail if specified refspec does not match remote.
'git-fetch remote no-such-ref' succeeded without fetching any
ref from the remote. Detect such case and report an error.
Note that this makes 'git-fetch remote master master' to fail,
because the remote branch 'master' matches the first refspec,
and the second refspec is left unmatched, which is detected by
the error checking logic. This is somewhat unintuitive, but
giving the same refspec more than once to git-fetch is useless
in any case so it should not be much of a problem. I'd accept a
patch to change this if somebody cares enough, though.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.c')
0 files changed, 0 insertions, 0 deletions