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

Re: How to jump between two repositories ...

From
Gg2 <gerald.gutierrez@gmail.com>
Date
Dec 5, 2007, 15:28 UTC
Message-ID
<9F403ACE-62C0-4A6D-945C-3DA6DF0316B8@gmail.com>
In-Reply-To
<47566526.9010900@op5.se>

How do you safely push to the repository? Even if my receiving repository is pristine (the last command I do is a commit), after I push into it, some files in the work-tree are effectively out of date and git says so by thinking they are modified and staged for commit. My original set of example commands illustrates this. What set of commands do you use to avoid the problem?

On 5-Dec-07, at 12:45 AM, Andreas Ericsson wrote:
Show 19 quoted lines
>
> Yes it does. It just supports it badly. If there is a work-tree  
> connected to
> the receiving repository and that work-tree is pristine, it would be  
> safe and
> sane to write the newly pushed changes to the connected working tree.
>
> We do all our integration fixups by pushing to repositories with  
> work-trees,
> simply because it's ridiculously inconvenient to add the  
> infrastructure to
> pull to those repos from each individual developer. In that  
> scenario, pushing
> to a checked out branch is highly useful and perfectly safe.
>
> -- 
> Andreas Ericsson                   andreas.ericsson@op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Andreas EricssonNext: Andreas Ericsson
Message 5 of 10 in “How to jump between two repositories ...”
  1. g2Dec 5, 2007
  2. Shawn O. PearceDec 5, 2007
  3. J. Bruce FieldsDec 5, 2007
  4. Andreas EricssonDec 5, 2007
  5. g2Dec 5, 2007
  6. Andreas EricssonDec 5, 2007
  7. Väinö JärveläDec 5, 2007
  8. g2Dec 5, 2007
  9. Steven GrimmDec 5, 2007
  10. Väinö JärveläDec 5, 2007

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.