git push: Interpret $GIT_DIR/branches in a Cogito compatible way
commit18afe101eb2c2f68ba58085515f592148128fba3
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 10 Nov 2008 21:47:11 +0000 (10 22:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Nov 2008 23:26:40 +0000 (11 15:26 -0800)
treefb267e9cb07125764ed3481a48194138d5f85f35
parent9db56f71b91153f4076a796c80c61f00edd8b700
git push: Interpret $GIT_DIR/branches in a Cogito compatible way

Current git versions ignore everything after # (called <head> in the
following) when pushing. Older versions (before cf818348f1ab57),
interpret #<head> as part of the URL, which make git bail out.

As branches origin from Cogito, it is the best to correct this by using
the behaviour of cg-push, that is to push HEAD to remote refs/heads/<head>.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/urls-remotes.txt
remote.c
t/t5516-fetch-push.sh