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

Re: [Bug] Gitweb corrupting files?

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 12, 2011, 18:05 UTC
Message-ID
<m3hbdeatgn.fsf@localhost.localdomain>
In-Reply-To
<AANLkTim84sSWr=WRgjiY=Y3Mq7Tgojv9CpLrNjQMJfHR@mail.gmail.com>
Severin Gehwolf <jerboaa@gmail.com> writes:
> It appears that Gitweb corrupts files when it is being used for
> creating compressed tarballs of sources.

E.g. http://egit.eclipse.org/w/?p=egit.git;a=snapshot;h=6b528445c3e543688b990e0a631c5f0238b02741;sf=tbz2 error in egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java

> A more precise description of the behaviour I'm experiencing is here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317882
Couldn't you post summary of the above here?
 
> Unfortunately I have no knowledge about the version in use at eclipse.org.
It's git and gitweb version 1.6.4.4.
>From original bugreport:
   And it built fine. Then, I tried checking out sources from command line using
   the git client:
   git clone git://egit.eclipse.org/egit.git egit
   cd egit
   git checkout 6b528445c3e543688b990e0a631c5f0238b02741
   cd ..
   tar -cjf egit_test.tar.bz2 egit
This should be
$ git archive --format=tar 6b528445c3e543688b990e0a631c5f0238b02741 |
  bzip2 > egit_test.tar.bz2
   just to make sure that it isn't a problem of how tarballs are created when
   using the above URL. It seems the file in the repository is corrupted (although
   I'm not entirely convinced).      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Git version 1.6.4.4 is long since fixing bug with not using ':raw' (binary) output layer with binary files. Also I don't see how it could have corrupted only 2 files, without making [compressed] archive un-compressable (invalid).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: J.H.Next: Severin Gehwolf
Message 3 of 4 in “[Bug] Gitweb corrupting files?”
  1. Severin GehwolfJan 12, 2011
  2. J.H.Jan 12, 2011
  3. Jakub NarebskiJan 12, 2011
  4. Severin GehwolfJan 15, 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.