git-p4: fix test for unsupported P4 Client Views
[gitweb.git] / contrib / fast-import / git-p4
index d3c3ad859c7fdf60756cba8623b6b34842bd5ca4..c144c8960c0af6719ad29f677745d60f6aa8cd12 100755 (executable)
@@ -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