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

Re: [ANNOUNCE] GIT 1.6.4.rc1

From
JGJeff Garzik <jeff@garzik.org>
Date
Jul 16, 2009, 07:15 UTC
Message-ID
<4A5ED38F.5070708@garzik.org>
In-Reply-To
<7vocrl9kwi.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 22 quoted lines
> Jeff Garzik <jeff@garzik.org> writes:
> 
>> 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
> 
> I think "scp -r" is a wrong way to "clone", as it will copy .git/config
> that is specific to your local work tree that does not apply to the
> situation at remote.example.com anyway.  You do not want to push into your
> local repository with a work tree you are "scp -r"ing out of, but you do
> want to push into the one at remote.example.com.
> 
> Interestingly enough, we had a two separate thread about making a bare
> repository out of a repository with a work tree today ;-)
> 
> 	remote.example.com$ cd /pub/scm/
>         remote.example.com$ git clone --bare over.there:/spare/repo/cld/.git cld.git

That direction doesn't work due to firewalls, hence the scp out /to/ remote.example.com.

So, will this make git happy?  :)
[starting on local machine, where I do development]
1) scp -r /spare/repo/cld remote.example.com:/tmp
2) ssh remote.example.com
3) cd /pub/scm
4) git clone --bare /tmp/cld/.git cld.git
Regards,
	Jeff
Previous: Junio C HamanoNext: Junio C Hamano
Message 13 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.