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

Re: Pushing into a repository with working directory?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 9, 2007, 13:51 UTC
Message-ID
<Pine.LNX.4.63.0701091449320.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<45A35D30.3070305@op5.se>
Hi,
On Tue, 9 Jan 2007, Andreas Ericsson wrote:
Show 10 quoted lines
> Shawn O. Pearce wrote:
> > 
> > Pushing into the current branch of a repository with a working 
> > directory probably shouldn't be allowed by default as users probably 
> > don't want to do that.
> 
> 
> I do this all the time. I develop on my laptop and send changes to a 
> testserver where I check out the revision I just pushed to the working 
> directory attached to it.

This is still possible. I also do it all the time. Only I do not update the _current_ branch, but a throwaway one.

> Since we can determine if there's a working directory or not, why not 
> just allow the fast-forward case if the working directory is clean and 
> update the working directory for the user?
Because maybe that user could be working on them right now?
The behaviour is safe as is.

Ciao, Dscho

Previous: Andreas Ericsson
Message 11 of 11 in “Pushing into a repository with working directory?”
  1. Shawn O. PearceJan 2, 2007
  2. Andy WhitcroftJan 5, 2007
  3. Junio C HamanoJan 5, 2007
  4. Andy WhitcroftJan 5, 2007
  5. Junio C HamanoJan 5, 2007
  6. Shawn O. PearceJan 5, 2007
  7. Andy WhitcroftJan 8, 2007
  8. Junio C HamanoJan 9, 2007
  9. Shawn O. PearceJan 9, 2007
  10. Andreas EricssonJan 9, 2007
  11. Johannes SchindelinJan 9, 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.