git p4 test: make sure P4CONFIG relative path works
[gitweb.git] / t / t9802-git-p4-filetype.sh
index c5ab62669983f7058682c1579a992dff3b00f541..eeefa6790454d83bfb4ce740f7b1843c6a71c79c 100755 (executable)
@@ -222,12 +222,13 @@ build_gendouble() {
        cat >gendouble.py <<-\EOF
        import sys
        import struct
-       import array
 
-       s = array.array("c", '\0' * 26)
-       struct.pack_into(">L", s,  0, 0x00051607)  # AppleDouble
-       struct.pack_into(">L", s,  4, 0x00020000)  # version 2
-       s.tofile(sys.stdout)
+       s = struct.pack(">LL18s",
+                       0x00051607,  # AppleDouble
+                       0x00020000,  # version 2
+                       ""           # pad to 26 bytes
+       )
+       sys.stdout.write(s)
        EOF
 }