Thinko, fix buglet.
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 23 May 2007 21:49:35 +0000 (18:49 -0300)
committerHan-Wen Nienhuys <hanwen@google.com>
Wed, 30 May 2007 19:22:57 +0000 (16:22 -0300)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
contrib/fast-import/git-p4

index 8a3c53eb8cb427df5e0e15d029f09652e9433954..f1f562fae4ef23440f30cf310e1fce4fb478e1fe 100755 (executable)
@@ -699,11 +699,11 @@ class P4Sync(Command):
 
                 assert end >= 0
             else:
-                end = len(specs)
-
+                end = len(data)
 
             info['data'] = data[start:end]
             idx = end
+        assert idx == len(data)
 
     def commit(self, details, files, branch, branchPrefixes, parent = ""):
         epoch = details["time"]