author | Daniel Barkalow <barkalow@iabervon.org> | |
Tue, 18 Mar 2008 02:05:23 +0000 (22:05 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Mar 2008 05:18:57 +0000 (22:18 -0700) | ||
commit | ef00d150e4f9959bf083adf92419b5053ba11584 | |
tree | 5677d12f9ef0b1877060accaec463aa472480557 | tree | snapshot |
parent | 971f229c50aeace83d6fd30de1de755f419d4cb8 | commit | diff |
Tighten refspec processing
This changes the pattern matching code to not store the required final
/ before the *, and then to require each side to be a valid ref (or
empty). In particular, any refspec that looks like it should be a
pattern but doesn't quite meet the requirements will be found to be
invalid as a fallback non-pattern.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This changes the pattern matching code to not store the required final
/ before the *, and then to require each side to be a valid ref (or
empty). In particular, any refspec that looks like it should be a
pattern but doesn't quite meet the requirements will be found to be
invalid as a fallback non-pattern.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | diff | blob | history |