Re: [PATCH] Switch receive.denyCurrentBranch to "refuse"
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Jan 30, 2009, 16:17 UTC
- Message-ID
- <76718490901300817x3f31460k59b6fe75d136372d@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0901300133070.3586@pacific.mpi-cbg.de>
On Thu, Jan 29, 2009 at 7:34 PM, Johannes Schindelin <johannes.schindelin@gmx.de> 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.