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

Re: Overwriting bare repositories' master

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 29, 2006, 22:43 UTC
Message-ID
<Pine.LNX.4.63.0610292338300.26682@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vslh6zstt.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sun, 29 Oct 2006, Junio C Hamano wrote:
Show 27 quoted lines
> Sylvain Beucler <beuc@gnu.org> writes:
> 
> > I tried and I found something that doesn't seem to follow the
> > documentation:
> >
> > [...]
> > error: denying non-fast forward; you should pull first
> >
> > From man git-push:
> > "If the optional plus + is used, the remote ref is updated even if it
> > does not result in a fast forward update."
> >
> > [...]
> >
> > Is this by design? Or should it work?
> 
> I suspect (because I cannot see your .git/config in the
> repository; which would say "[core] sharedrepository = 1" if my
> suspicion is correct) that this is fairly new heavyhanded safety
> valve added by the list around mid September, with this:
> 
>     commit 11031d7e9f34f6a20ff4a4bd4fa3e5e3c0024a57
>     Author: Johannes Schindelin <Johannes.Schindelin@gmx.de>
>     Date:   Thu Sep 21 01:07:54 2006 +0200
> 
>         add receive.denyNonFastforwards config variable
> [...]

I still think the forced updates of pu still lose too many useful bits in git's history.

Having said that, if receive.denyNonFastforwards indeed is the culprit: git-shell allows you to do something like this:

	ssh user@git.gnu.org \
	  "git-repo-config --unset receive.denyNonFastforwards"
After that, forced pushes should succeed. By the same account,
	ssh user@git.gnu.org \
	  "git-repo-config --bool receive.denyNonFastforwards"

should tell you if Junio's suggestion is right (in this case, it will output "true").

Hth, Dscho

Previous: Sylvain Beucler
Message 6 of 6 in “Overwriting bare repositories' master”
  1. Sylvain BeuclerOct 29, 2006
  2. Sylvain BeuclerOct 29, 2006
  3. Junio C HamanoOct 29, 2006
  4. Junio C HamanoOct 29, 2006
  5. Sylvain BeuclerOct 29, 2006
  6. Johannes SchindelinOct 29, 2006

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.