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, 03:59 UTC
Message-ID
<4A5EA598.5050801@garzik.org>
In-Reply-To
<7vmy75bg2f.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 34 quoted lines
> GIT v1.6.4 Release Notes (draft)
> ================================
> 
> With the next major release, "git push" into a branch that is
> currently checked out will be refused by default.  You can choose
> what should happen upon such a push by setting the configuration
> variable receive.denyCurrentBranch in the receiving repository.
> 
> To ease the transition plan, the receiving repository of such a
> push running this release will issue a big warning when the
> configuration variable is missing.  Please refer to:
> 
>   http://git.or.cz/gitwiki/GitFaq#non-bare
>   http://thread.gmane.org/gmane.comp.version-control.git/107758/focus=108007
> 
> for more details on the reason why this change is needed and the
> transition plan.
> 
> For a similar reason, "git push $there :$killed" to delete the branch
> $killed in a remote repository $there, if $killed branch is the current
> branch pointed at by its HEAD, gets a large warning.  You can choose what
> should happen upon such a push by setting the configuration variable
> receive.denyDeleteCurrent in the receiving repository.
> 
> When the user does not tell "git push" what to push, it has always
> pushed matching refs.  For some people it is unexpected, and a new
> configuration variable push.default has been introduced to allow
> changing a different default behaviour.  To advertise the new feature,
> a big warning is issued if this is not configured and a git push without
> arguments is attempted.
> 
> 	Side note: we might want to tone this down, as it does not seem
> 	likely for us to change the default behaviour when this option is
> 	not set.

Is there some sort of guide to the new best practices for handling trees such as git.kernel.org, where one pushes into "foo.git" directly, and there is no checked-out source code at all?

I've been getting the multi-line "warning: Updating the currently checked out branch may cause confusion" message, but ignoring it for now, because it does not appear to apply to my situation (no checked-out work tree).

Advice appreciated...
	Jeff
Previous: Tommy NordgrenNext: Junio C Hamano
Message 5 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.