projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.8.3
[platform/upstream/git.git]
/
t
/
t9802-git-p4-filetype.sh
diff --git
a/t/t9802-git-p4-filetype.sh
b/t/t9802-git-p4-filetype.sh
index
66d3fc9
..
eb9a8ed
100755
(executable)
--- a/
t/t9802-git-p4-filetype.sh
+++ b/
t/t9802-git-p4-filetype.sh
@@
-223,12
+223,12
@@
build_gendouble() {
import sys
import struct
import sys
import struct
- s = struct.pack(">LL18s",
+ s = struct.pack(
b
">LL18s",
0x00051607, # AppleDouble
0x00020000, # version 2
0x00051607, # AppleDouble
0x00020000, # version 2
-
""
# pad to 26 bytes
+
b""
# pad to 26 bytes
)
)
-
sys.stdout
.write(s)
+
getattr(sys.stdout, 'buffer', sys.stdout)
.write(s)
EOF
}
EOF
}