Re: git and gitweb inconsistencies
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- Oct 23, 2005, 18:28 UTC
- Message-ID
- <20051023182800.GH8383MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <20051023173055.GA3019@pe.Belkin>
On Sun, Oct 23, 2005 at 01:30:55PM -0400, Chris Shoemaker wrote:
> 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.
Since many of the core git tools try to detect the actual git dir, it might not be a bad idea for cvsimport to do this as well. It probably also shouldn't create a new git repository if the -i option has been specified.
> 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.
gitweb just sets GIT_DIR and then the core git tools won't guess.
skimo