mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
git-p4: fix test for unsupported P4 Client Views
Change re method in test for unsupported Client View types (containing %% or *) anywhere in the string rather than at the begining. [pw: two tests now succeed] Signed-off-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
c700b684cf
commit
b10048d0e9
@@ -1889,9 +1889,12 @@ class P4Sync(Command, P4UserMap):
|
||||
|
||||
# p4 has these %%1 to %%9 arguments in specs to
|
||||
# reorder paths; which we can't handle (yet :)
|
||||
if re.match('%%\d', v) != None:
|
||||
if re.search('%%\d', v) != None:
|
||||
print "Sorry, can't handle %%n arguments in client specs"
|
||||
sys.exit(1)
|
||||
if re.search('\*', v) != None:
|
||||
print "Sorry, can't handle * mappings in client specs"
|
||||
sys.exit(1)
|
||||
|
||||
if v.startswith('"'):
|
||||
start = 1
|
||||
|
||||
Reference in New Issue
Block a user