lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ANNOUNCE] GIT 1.6.4.rc1
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.

Regards,

Jeff





\
 
 \ /
  Last update: 2009-07-16 08:47    [W:3.049 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site