git-p4: only a single ... wildcard is supported
Catch the case where a ... exists at the end, and also elsehwere. Reported-by: Gary Gibbons <ggibbons@perforce.com> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
896a681698
commit
43b82bd9c3
@ -1207,8 +1207,8 @@ class View(object):
|
||||
die("Can't handle * wildcards in view: %s" % self.path)
|
||||
triple_dot_index = self.path.find("...")
|
||||
if triple_dot_index >= 0:
|
||||
if not self.path.endswith("..."):
|
||||
die("Can handle ... wildcard only at end of path: %s" %
|
||||
if triple_dot_index != len(self.path) - 3:
|
||||
die("Can handle only single ... wildcard, at end: %s" %
|
||||
self.path)
|
||||
self.ends_triple_dot = True
|
||||
|
||||
|
Reference in New Issue
Block a user