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

Re: Why gitweb commitdiff NO diff output ?

From
DSDongsheng Song <dongsheng.song@gmail.com>
Date
Oct 10, 2006, 06:36 UTC
Message-ID
<4b3406f0610092336v5ab58134i280f64223a272b0b@mail.gmail.com>
In-Reply-To
<7viris9a6g.fsf@assigned-by-dhcp.cox.net>
There is the result:
www-data@ab:/home/repository/git/gcc$ for blob in \
Show 7 quoted lines
>          a34d77e47bf1561db1ade4f6b247598b880f80d5 \
>          7625c494df01d4745e67bd4423e2fdbe9fc43799 \
>          b207fe30a5430f97d27d398d89c974b068694c7a \
>          57b07ace4bb6352416bbf9436b9f2642b3273257
>          do
>                git cat-file -t $blob || echo $blob does not exist
>          done

blob blob blob blob www-data@ab:/home/repository/git/gcc$ git cat-file commit c977ee1b2e54d67bb379ce476f784431c32136d7 |

>          grep 'parent '
parent b693aceaba66f741cd6735d4ecd16fe59394a2cf
www-data@ab:/home/repository/git/gcc$ git diff-tree -p
c977ee1b2e54d67bb379ce476f784431c32136d7 | wc
     37     137    1179

I have the SAME problem with ALL commits, ONLY the 2.4.x machine, but git-core/cg tools is OK. All git/cg/gitweb is good for other 2.6.x machines.

you can browse the two gitweb site:

2.4.27 http://www.foresee.com.cn:8888/git/?p=gcc/.git;a=shortlog 2.6.16 http://www.foresee.com.cn:9999/git/?p=gcc/.git;a=shortlog

2006/10/10, Junio C Hamano <junkio@cox.net>:
Show 55 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
>
> > "Dongsheng Song" <dongsheng.song@gmail.com> writes:
> >
> >> NO.
> >>
> >> When I change the repository's owner to gitweb process,  no diff output yet.
> >>
> >> $ chown -R www-data:www-data  cauchy/ gcc/ mph/
> >>
> >> 2006/10/10, Junio C Hamano <junkio@cox.net>:
> >>> The site does not return any of these four blobs that are part
> >>> of the commitdiff when a=blob is requested on them.
> >>>
> >>>         file:a34d77e47bf1561db1ade4f6b247598b880f80d5 ->
> >>>         file:7625c494df01d4745e67bd4423e2fdbe9fc43799
> >>>
> >>>         file:b207fe30a5430f97d27d398d89c974b068694c7a ->
> >>>         file:57b07ace4bb6352416bbf9436b9f2642b3273257
> >>>
> >>> I would first suspect if the repository actually have them _and_
> >>> with an appropriate mode protection to be readable by your
> >>> gitweb process.
> >
> > And does the repository have these four blob objects?
>
> Sorry, the follow-up question was not very helpful to guide
> another person over e-mail.  Let's try again with more specific
> questions.
>
> What do these say in that repository when run as the webserver
> user?
>
>         $ for blob in \
>           a34d77e47bf1561db1ade4f6b247598b880f80d5 \
>           7625c494df01d4745e67bd4423e2fdbe9fc43799 \
>           b207fe30a5430f97d27d398d89c974b068694c7a \
>           57b07ace4bb6352416bbf9436b9f2642b3273257
>           do
>                 git cat-file -t $blob || echo $blob does not exist
>           done
>         $ git cat-file commit c977ee1b2e54d67bb379ce476f784431c32136d7 |
>           grep 'parent '
>         $ git diff-tree -p c977ee1b2e54d67bb379ce476f784431c32136d7 | wc
>
> The first one tries to make sure you have those four blob
> objects in the repository, the second tries to make sure the
> commit is a single parent commit as your gitweb output suggests,
> and the last one is to obtain the diff text.
>
> Also do you have the same problem with other commits, or is this
> the only commit your gitweb is having trouble with showing
> commitdiff?
>
>
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 15 in “Why gitweb commitdiff NO diff output ?”
  1. Dongsheng SongSep 28, 2006
  2. Jakub NarebskiOct 3, 2006
  3. Martin WaitzOct 3, 2006
  4. Junio C HamanoOct 3, 2006
  5. Dongsheng SongOct 8, 2006
  6. Junio C HamanoOct 10, 2006
  7. Dongsheng SongOct 10, 2006
  8. Junio C HamanoOct 10, 2006
  9. Junio C HamanoOct 10, 2006
  10. Dongsheng SongOct 10, 2006
  11. Junio C HamanoOct 10, 2006
  12. Dongsheng SongOct 10, 2006
  13. Junio C HamanoOct 10, 2006
  14. Johannes SchindelinOct 10, 2006
  15. Dongsheng SongOct 11, 2006

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.