From: Pete Wyckoff Date: Tue, 15 Jan 2013 00:47:03 +0000 (-0500) Subject: git p4: allow short ref names to --branch X-Git-Tag: v1.8.2-rc0~101^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/40d69ac3a4fd72b879bab9975b26e1b445b5f0cc?hp=40d69ac3a4fd72b879bab9975b26e1b445b5f0cc git p4: allow short ref names to --branch For a clone or sync, --branch says where the newly imported branch should go, or which existing branch to sync up. It takes an argument, which is currently either something that starts with "refs/", or if not, "refs/heads/p4" is prepended. Putting it in heads seems like a bad default; these should go in remotes/p4/ in most situations. Make that the new default, and be more liberal in the form of the branch name. Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano ---