Re: git and gitweb inconsistencies
- From
- Chris 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