only run p4 print if necessary

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 63d7a4c..76bbe3f 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -677,6 +677,9 @@
         specs = [(f['path'] + "#" + f['rev'], f)  for f in files
                  if f['action'] != 'delete']
 
+        if not specs:
+            return
+
         data = read_pipe('p4 print %s' % ' '.join(['"%s"' % path
                                                    for (path, info) in specs]))