Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-04 22:04:57 +0400
committerJunio C Hamano <gitster@pobox.com>2013-02-04 22:04:58 +0400
commit390ac27a18d6d64b050bc331592af2dac919d7d1 (patch)
treecb42258808c5f72331f2dc380fd731dbb3480d17 /t
parent6cc01490c368b6f54821acc0bd2b7bd9600342e3 (diff)
parent2e4f04fae6810161c17bf456124b364ad927c499 (diff)
Merge branch 'bc/git-p4-for-python-2.4' into maint
* bc/git-p4-for-python-2.4: INSTALL: git-p4 does not support Python 3 git-p4.py: support Python 2.4 git-p4.py: support Python 2.5
Diffstat (limited to 't')
-rwxr-xr-xt/t9802-git-p4-filetype.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/t/t9802-git-p4-filetype.sh b/t/t9802-git-p4-filetype.sh
index 21924dfd7d..aae1a3f816 100755
--- a/t/t9802-git-p4-filetype.sh
+++ b/t/t9802-git-p4-filetype.sh
@@ -105,12 +105,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
}