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

Re: Feature request: Allow extracting revisions into directories

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 4, 2013, 16:55 UTC
Message-ID
<7v38xc3toq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAH5451mp6fRU25LWE+8gk1h6Mz=y_XQHaU-iE0k4=bP0RfzLAA@mail.gmail.com>
Andrew Ardill <andrew.ardill@gmail.com> writes:
Show 14 quoted lines
> On 4 February 2013 23:14, Robert Clausecker <fuzxxl@gmail.com> wrote:
>> The specific workflow I am planning is this:
>>
>> I have a server that hosts a bare git repository. This git repository
>> contains a branch production. Whenever somebody pushes to production a
>> hook automatically puts a copy of the current production branch
>> into /var/www/foo. I could of course use pull for that but it just does
>> not feels right. Why should I have a repository twice on the server?
>
> Maybe I'm missing something. How does the behaviour you need differ from
>
>> GIT_WORKING_DIR=/var/www/foo git checkout -f <tree-ish>
>
> ??

In addition to the fact that your misspellt environment variable name will not cause it to write there, you will also be overwriting the index for your working tree, which presumably you meant is a location different from the /var/www/foo, with the contents of <tree-ish>.

Previous: Andrew ArdillNext: Andreas Schwab
Message 20 of 22 in “Feature request: Allow extracting revisions into directories”
  1. Robert ClauseckerFeb 3, 2013
  2. Sitaram ChamartyFeb 3, 2013
  3. Robert ClauseckerFeb 3, 2013
  4. Sitaram ChamartyFeb 4, 2013
  5. Phil HordFeb 5, 2013
  6. Robert ClauseckerFeb 9, 2013
  7. Junio C HamanoFeb 9, 2013
  8. Junio C HamanoFeb 10, 2013
  9. Robert ClauseckerFeb 10, 2013
  10. Jonathan NiederFeb 10, 2013
  11. Robert ClauseckerFeb 10, 2013
  12. Jonathan NiederFeb 10, 2013
  13. Konstantin KhomoutovFeb 3, 2013
  14. Michael J GruberFeb 4, 2013
  15. Robert ClauseckerFeb 4, 2013
  16. Tomas CarneckyFeb 4, 2013
  17. Junio C HamanoFeb 4, 2013
  18. Sitaram ChamartyFeb 5, 2013
  19. Andrew ArdillFeb 4, 2013
  20. Junio C HamanoFeb 4, 2013
  21. Andreas SchwabFeb 4, 2013
  22. Thomas KochFeb 10, 2013

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.