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

Re: [ANNOUNCE] GIT 1.6.4.rc1

From
FBFelipe Balbi <felipe.balbi@nokia.com>
Date
Jul 16, 2009, 07:21 UTC
Message-ID
<20090716072130.GH5256@nokia.com>
In-Reply-To
<4A5ED41F.5010502@garzik.org>
On Thu, Jul 16, 2009 at 09:17:51AM +0200, ext Jeff Garzik wrote:
Show 40 quoted lines
> Felipe Balbi wrote:
> > On Thu, Jul 16, 2009 at 08:43:21AM +0200, ext Jeff Garzik wrote:
> >> Junio C Hamano wrote:
> >>> Jeff Garzik <jeff@garzik.org> writes:
> >>>
> >>>> Is there some sort of guide to the new best practices for handling
> >>>> trees such as git.kernel.org, where one pushes into "foo.git"
> >>>> directly, and there is no checked-out source code at all?
> >>> I think old repositories will be helped if you add
> >>>
> >>> 	[core]
> >>>         	bare
> >>>
> >>> to their foo.git/config files.
> >> Thanks.  What about cloning new repositories?  Real world example:
> >>
> >> Local workstation has /spare/repo/cld/.git repository, with checked-out 
> >> working tree.
> >>
> >> I want to publish this tree to the world via a *.kernel.org-like system, 
> >> so my task is to
> >>
> >> 	scp -r /spare/repo/cld/.git remote.example.com:/pub/scm/cld.git
> >>
> >> but if I do this with scp, then future pushes to 
> >> remote.example.com:/pub/scm/cld.git emit the warning about updating the 
> >> currently checked-out branch -- even though there are no checked-out 
> >> files.  The checked-out files were not copied in the scp.
> > 
> > how about you create the bare repository on the kernel.org-like server
> > and then push cld to it ?
> 
> You mean use 'git init-db', like this?
> 
> 1) remote: cd /pub/scm ; mkdir cld.git ; GIT_DIR=cld.git git init-db
> 
> 2) local: cd /spare/repo/cld ; git push --force --all \
> 	remote.ex.com/pub/scm/cld.git
> 
> I suppose that would work...
yes, exactly :-)
-- 
balbi
Previous: Jeff GarzikNext: Junio C Hamano
Message 11 of 19 in “[ANNOUNCE] GIT 1.6.4.rc1”
  1. Junio C HamanoJul 16, 2009
  2. Tommy NordgrenJul 16, 2009
  3. Mike RalphsonJul 16, 2009
  4. Tommy NordgrenJul 17, 2009
  5. Jeff GarzikJul 16, 2009
  6. Junio C HamanoJul 16, 2009
  7. Jeff GarzikJul 16, 2009
  8. Jeff GarzikJul 16, 2009
  9. Felipe BalbiJul 16, 2009
  10. Jeff GarzikJul 16, 2009
  11. Felipe BalbiJul 16, 2009
  12. Junio C HamanoJul 16, 2009
  13. Jeff GarzikJul 16, 2009
  14. Junio C HamanoJul 16, 2009
  15. Jeff GarzikJul 16, 2009
  16. [ANNOUNCE] Re: GIT 1.6.4.rc1Nicolas Sebrecht, Jul 16, 2009
  17. Nanako ShiraishiJul 18, 2009
  18. Junio C HamanoJul 19, 2009
  19. Nanako ShiraishiJul 19, 2009

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.