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

Fwd: Git-web error

From
RBrajesh boyapati <boyapatisrajesh@gmail.com>
Date
Jan 27, 2012, 18:15 UTC
Message-ID
<61c866a5-31a0-4994-ae29-2086f18e707b@o9g2000yqa.googlegroups.com>
In-Reply-To
<5fa08a8b-f0a2-4796-bf0d-06a8f13bf703@b23g2000yqn.googlegroups.com>
---------- Forwarded message ----------
From: rajesh boyapati <boyapatisraj...@gmail.com>
Date: Jan 25, 7:10 pm
Subject: Git-web error
To: Repo and Gerrit Discussion
Hi,
We integrated git-web to our gerrit Code-review.
I installed gitweb using the command:
$ sudo apt-get install gitweb
Then I configured gitweb to our gerrit using the command:
$ git config --file $SITE_PATH/etc/gerrit.config gitweb.cgi /usr/lib/
cgi-bin/gitweb.cgi
Now the gitweb is added to gerrit.config and in gerrit config file, it
looks like
[gitweb]
        cgi = /usr/lib/cgi-bin/gitweb.cgi
Then, restarted gerrit server.

When I go to one of the projects in gerrit through gitweb and when I click "summary", I am getting the below error. If I click other tabs(log, shortlog, commit, tree,etc) after clicking "summary", I am getting following error in error-log. If I click other tabs(log, shortlog, commit, tree,etc) before clicking "summary", everything works fine.

Error: ================================================================= [2012-01-25 18:50:32,334] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: [Wed Jan 25 18:50:32 2012] gitweb.cgi: Use of uninitialized value $head in string eq at /usr/lib/cgi-bin/gitweb.cgi line 4720. [2012-01-25 18:50:35,658] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: [Wed Jan 25 18:50:35 2012] gitweb.cgi: Use of uninitialized value $commit_id in open at /usr/lib/cgi-bin/gitweb.cgi line 2817. [2012-01-25 18:50:35,660] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: fatal: bad revision '' [2012-01-25 18:50:39,209] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: [Wed Jan 25 18:50:39 2012] gitweb.cgi: Use of uninitialized value $commit_id in open at /usr/lib/cgi-bin/gitweb.cgi line 2817. [2012-01-25 18:50:39,210] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: fatal: bad revision '' [2012-01-25 18:50:40,656] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: fatal: bad revision 'HEAD' [2012-01-25 18:53:17,097] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: fatal: bad revision 'HEAD' [2012-01-25 18:53:17,113] ERROR com.google.gerrit.httpd.gitweb.GitWebServlet : CGI: [Wed Jan 25 18:53:17 2012] gitweb.cgi: Use of uninitialized value $head in string eq at /usr/lib/cgi-bin/gitweb.cgi line 4720. =================================================================

Can any one help me on how to resolve this issue?.

Thanks, Rajesh.

Next: Jakub Narebski
Message 1 of 14 in “Fwd: Git-web error”
  1. rajesh boyapatiJan 27, 2012
  2. Jakub NarebskiJan 27, 2012
  3. Jakub NarebskiJan 29, 2012
  4. Jakub NarebskiJan 30, 2012
  5. gitweb: Deal with HEAD pointing to unborn branch in "heads" viewJakub Narebski, Feb 3, 2012
  6. Jakub NarebskiFeb 7, 2012
  7. gitweb: Harden parse_commit and parse_commitsJakub Narebski, Feb 8, 2012
  8. Jakub NarebskiFeb 9, 2012
  9. gitweb: Silence stderr in parse_commit*() subroutinesJakub Narebski, Feb 11, 2012
  10. Junio C HamanoFeb 13, 2012
  11. Jakub NarebskiFeb 13, 2012
  12. Jakub NarebskiFeb 13, 2012
  13. Jakub NarebskiFeb 13, 2012
  14. Jakub NarebskiFeb 15, 2012

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.