git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"git archive" seems to be broken wrt zip files

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Sep 11, 2011, 04:58 UTC
Message-ID
<CA+55aFx43OxExGNrJs+AyKNtdr+KCZZoE=iaQTz8uHoUSrQv0w@mail.gmail.com>

So I wouldn't ever have noticed on my own, but now that I've tried github for the kernel, somebody else reported that the downloaded zip file (seriously? the kernel as a zip file?) is corrupt.

And it doesn't really seem to be a github issue. I can re-create it with a simple

   git archive --format=zip HEAD -o ../kernel.zip
on my kernel repository: the end result does not unzip correctly:
   mkdir temp-directory
   cd temp-directory
   unzip kernel.zip
   ...
     inflating: virt/kvm/iommu.c
     inflating: virt/kvm/irq_comm.c
     inflating: virt/kvm/kvm_main.c
   finishing deferred symbolic links:
     arch/microblaze/boot/dts/system.dts -> ../../platform/generic/system.dts
     drivers/scsi/aic94xx/aic94xx_reg.h -> /*^J * Aic94xx SAS/SATA
driver hardware registers definitions.[ rest of the file ]
   symlink error: File name too long

iow, for some reason that "drivers/scsi/aic94xx/aic94xx_reg.h" file seems to have been encoded as a symlink.

Anybody seen this?
                          Linus
Next: Jeff King
Message 1 of 7 in “"git archive" seems to be broken wrt zip files”
  1. Linus TorvaldsSep 11, 2011
  2. Jeff KingSep 11, 2011
  3. Jeff KingSep 11, 2011
  4. Andreas SchwabSep 11, 2011
  5. René ScharfeSep 11, 2011
  6. Linus TorvaldsSep 14, 2011
  7. Andreas SchwabSep 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.