git-clone: Support changing the origin branch with -o
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 22 Dec 2005 22:37:24 +0000 (23:37 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 00:35:37 +0000 (16:35 -0800)
commite6c310fd0d7384973efc6b1d5999a5e8a5b2f3bd
treec42a1205f99f13ed446054a2a316729f53942e41
parent356bece0a2725818191b12f6e991490d52baa1d1
git-clone: Support changing the origin branch with -o

Earlier, git-clone stored upstream's master in the branch named 'origin',
possibly overwriting an existing such branch.

Now you can change it by calling git-clone with '-o <other_name>'.

[jc: added ref format check, subdirectory safety, documentation
 and usage string.]

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-clone.txt
git-clone.sh