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

Re: git and gitweb inconsistencies

From
CSChris Shoemaker <c.shoemaker@cox.net>
Date
Oct 23, 2005, 17:30 UTC
Message-ID
<20051023173055.GA3019@pe.Belkin>
In-Reply-To
<20051023115939.GG8383MdfPADPa@greensroom.kotnet.org>
On Sun, Oct 23, 2005 at 01:59:39PM +0200, Sven Verdoolaege wrote:
Show 6 quoted lines
> On Sat, Oct 22, 2005 at 08:14:12PM -0400, Chris Shoemaker wrote:
> > A few days later, I ran git-cvsimport again, with -i.  This imported
> > just the recent changes, but the view from gitweb didn't change.  :(
> 
> Are you sure you didn't just create a new import *inside* the old import ?
> Do you have, say, both an 'objects' and a '.git/objects' directory ?
OH!  You, sir, DO have a crystal ball.  :) 

I foolishly assumed that the second time I ran git-cvsimport, with -C /pub/scm/project/ it would be able to detect that I was using the stand-alone GIT-DIR. But, it obviously didn't. I guess the solution is use specify GIT_DIR everytime I run git-cvstimport.

So, it seems that git-web.cgi detects and prefers the stand-alone directory structure, because I specify it in the projects_list file, while git-cat-file, and git-update-ref default to using .git.

Show 10 quoted lines
> 
> > $ echo `git-rev-list tip --max-count=1` > refs/heads/mytest
> > $ git-cat-file -t `cat refs/heads/mytest`
> 
> That should be
> 
> git-update-ref refs/heads/mytest tip
> (the new head will appear in .git/refs/heads/mytest, 
> unless you've set GIT_DIR)
> git-cat-file -t mytest

Ah, and if I'd used that command, I would have realized something was wrong when mytest *didn't* appear in refs/heads, but rather .git/refs/heads.

Thanks for thinking creatively about how I could have messed it up!
-chris
> 
> 
> skimo
Previous: Sven VerdoolaegeNext: Sven Verdoolaege
Message 3 of 4 in “git and gitweb inconsistencies”
  1. Chris ShoemakerOct 23, 2005
  2. Sven VerdoolaegeOct 23, 2005
  3. Chris ShoemakerOct 23, 2005
  4. Sven VerdoolaegeOct 23, 2005

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.