From: Junio C Hamano Date: Fri, 07 Nov 2008 22:27:07 GMT Subject: Re: git-push and $GIT_DIR/branches Message-ID: <7vfxm3f9z8.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20081107204451.GA10394@auto.tuwien.ac.at> mkoegler@auto.tuwien.ac.at (Martin Koegler) writes: > I asume, that you [and probably many other] are not very interrested > in this feature. But would you accept a patch changing the push > refspec to HEAD:refs/heads/? I believe "git-push foo" with .git/branches/foo has worked the way it does now from day one, so the above change you suggest breaks peoples' expectations and documented behaviour, _if_ people are using "branches" with git-push. It definitely is a no-go to just change the behaviour without warning and deprecation period, but with a careful transition plan, I personally do not think there is a fundamental reason not to improve it (others may disagree). I do not know what Cogito did when you told it to push with such a configuration, though. Its "branches" had quite different semantics from the concept of "remote" in git.