author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Mon, 10 Nov 2008 21:47:11 +0000 (22:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 11 Nov 2008 23:26:40 +0000 (15:26 -0800) | ||
commit | 18afe101eb2c2f68ba58085515f592148128fba3 | |
tree | fb267e9cb07125764ed3481a48194138d5f85f35 | tree | snapshot |
parent | 9db56f71b91153f4076a796c80c61f00edd8b700 | commit | diff |
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>
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 | diff | blob | history | |
remote.c | diff | blob | history | |
t/t5516-fetch-push.sh | diff | blob | history |