From 18afe101eb2c2f68ba58085515f592148128fba3 Mon Sep 17 00:00:00 2001 From: Martin Koegler Date: Mon, 10 Nov 2008 22:47:11 +0100 Subject: git push: Interpret $GIT_DIR/branches in a Cogito compatible way Current git versions ignore everything after # (called in the following) when pushing. Older versions (before cf818348f1ab57), interpret # 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/. Signed-off-by: Martin Koegler Signed-off-by: Junio C Hamano --- Documentation/urls-remotes.txt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Documentation') diff --git a/Documentation/urls-remotes.txt b/Documentation/urls-remotes.txt index 504ae8a53..41ec7774f 100644 --- a/Documentation/urls-remotes.txt +++ b/Documentation/urls-remotes.txt @@ -68,13 +68,22 @@ This file should have the following format: ------------ `` is required; `#` is optional. -When you do not provide a refspec on the command line, -git will use the following refspec, where `` defaults to `master`, -and `` is the name of this file -you provided in the command line. + +Depending on the operation, git will use one of the following +refspecs, if you don't provide one on the command line. +`` is the name of this file in `$GIT_DIR/branches` and +`` defaults to `master`. + +git fetch uses: + +------------ + refs/heads/:refs/heads/ +------------ + +git push uses: ------------ - refs/heads/: + HEAD:refs/heads/ ------------ -- cgit v1.2.1