From: Jay Soffian Date: Fri, 30 Jan 2009 16:17:49 GMT Subject: Re: [PATCH] Switch receive.denyCurrentBranch to "refuse" Message-ID: <76718490901300817x3f31460k59b6fe75d136372d@mail.gmail.com> In-Reply-To: On Thu, Jan 29, 2009 at 7:34 PM, Johannes Schindelin wrote: > Many, many users set up non-bare repositories on their server, and are > confused that the working directory is not updated. This comes up on the list from time-to-time and is even in the FAQ. It has even been suggested that HEAD be detached when pushing into a non-bare repository, but I am not suggesting that again. I wonder if it might be helpful to teach clone to setup a push line in the cloned repo. i.e.: [remote "origin"] url = ... fetch = +refs/heads/*:refs/remotes/origin/* push = refs/heads/*:refs/remotes/origin/* This could be a configurable default behavior when cloning from a non-bare repo (can that be determined?) and/or as a switch (--satellite perhaps?). j.