From: Shawn O. Pearce Date: Fri, 19 Oct 2007 00:24:51 GMT Subject: Re: git push bug? Message-ID: <20071019002451.GQ14735@spearce.org> In-Reply-To: <0DAC53EF-021D-441C-9520-9795AAB6DE54@zib.de> Steffen Prohaska wrote: > On Oct 18, 2007, at 4:50 PM, Joakim Tjernlund wrote: > > > ># > git push ssh://devsrv/var/git/os2kernel.git linus:refs/linus ... > >error: refusing to create funny ref 'refs/linus' locally > >ng refs/linus funny refname > >error: failed to push to 'ssh://devsrv/var/git/os2kernel.git' ... > You may need to cleanup though. I'm not sure if the remote side > already created 'refs/linus'. The error message only indicates that > locally git refused to create the "funny refname". Cute. The error message "error: refusing to create .. locally" is actually coming from the remote site. Locally here is actually remotely. We *really* should change that. Its l.169 of receive-pack.c, which is only running on the remote side. :) Anyone game to improve that error message? Should be a pretty simple patch. One of the may low-hanging fruits in Git. -- Shawn.