git-archive --format=zip: use default version ID
Use 10 for the "version needed to extract" field. This is the default value, and we want to use it because we don't do anything special. Info-ZIP's zip uses it, too. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Rene Scharfe committed
Oct 7, 2006 at 01:47 UTC
cf72fb07b77c73b4777b6a2e0836e3029c5f0f3c
1 file changed
+2
-2
archive-zip.c
+2
-2
@@ -214,7 +214,7 @@ static int write_zip_entry(const unsigned char *sha1,
214
215
copy_le32(dirent.magic, 0x02014b50);
216
copy_le16(dirent.creator_version, 0);
217
- copy_le16(dirent.version, 20);
217
+ copy_le16(dirent.version, 10);
218
copy_le16(dirent.flags, 0);
219
copy_le16(dirent.compression_method, method);
220
copy_le16(dirent.mtime, zip_time);
@@ -236,7 +236,7 @@ static int write_zip_entry(const unsigned char *sha1,
236
zip_dir_entries++;
237
238
copy_le32(header.magic, 0x04034b50);
239
- copy_le16(header.version, 20);
239
+ copy_le16(header.version, 10);
240
copy_le16(header.flags, 0);
241
copy_le16(header.compression_method, method);
242
copy_le16(header.mtime, zip_time);