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

Re: git bug/feature request

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Nov 27, 2007, 20:19 UTC
Message-ID
<Pine.LNX.4.64.0711271514180.5349@iabervon.org>
In-Reply-To
<FA6B0BE9-FC43-4298-932F-627826ADE18F@midwinter.com>
On Tue, 27 Nov 2007, Steven Grimm wrote:
Show 10 quoted lines
> On Nov 27, 2007, at 7:13 AM, Jakub Narebski wrote:
> >I thought that modern git refuses to push into checked out branch
> >(in HEAD) in non-bare repositories.
> 
> It doesn't -- otherwise the "update the working copy when a push to the
> current branch comes in" update hook scripts that some of us use wouldn't
> work, and they do work at the moment. (Before anyone warns me of the dangers
> of that: the hook only runs in a shared repo that no human is allowed to
> modify, so the working copy is always a clean version of HEAD and thus is safe
> to update.)

It could require the working copy to be a clean version of HEAD, and, in this case, update it. Then it would always be kept consistent one way or the other, without consistency depending on the use of a hook. (This is like how a pre-refs/remotes/ pull into a checked-out origin was handled, and it seemed reliable there)

	-Daniel
*This .sig left intentionally blank*
Previous: Steven GrimmNext: Daniel Barkalow
Message 21 of 22 in “git bug/feature request”
  1. gaponNov 27, 2007
  2. Benoit SigoureNov 27, 2007
  3. gaponNov 27, 2007
  4. Jakub NarebskiNov 27, 2007
  5. gaponNov 27, 2007
  6. Jakub NarebskiNov 27, 2007
  7. Jakub NarebskiNov 27, 2007
  8. gaponNov 27, 2007
  9. Alex RiesenNov 27, 2007
  10. gaponNov 27, 2007
  11. Alex RiesenNov 27, 2007
  12. gaponNov 27, 2007
  13. Alex RiesenNov 27, 2007
  14. Jakub NarebskiNov 27, 2007
  15. Jan HudecNov 30, 2007
  16. Peter KarlssonNov 27, 2007
  17. David KastrupNov 27, 2007
  18. Peter KarlssonNov 28, 2007
  19. Jakub NarebskiNov 27, 2007
  20. Steven GrimmNov 27, 2007
  21. Daniel BarkalowNov 27, 2007
  22. Daniel BarkalowNov 27, 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.