git-p4: Fix error message crash in P4Sync.commit.
[gitweb.git] / contrib / fast-import / git-p4
index d47596f3280d0e7765ba59e67c481a95dce7ab4c..47ba7adafba2f0eb3966dcac11b8063e3171145a 100755 (executable)
@@ -1160,7 +1160,7 @@ class P4Sync(Command):
             if [p for p in branchPrefixes if p4PathStartsWith(f['path'], p)]:
                 new_files.append (f)
             else:
-                sys.stderr.write("Ignoring file outside of prefix: %s\n" % path)
+                sys.stderr.write("Ignoring file outside of prefix: %s\n" % f['path'])
 
         self.gitStream.write("commit %s\n" % branch)
 #        gitStream.write("mark :%s\n" % details["change"])