author | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Mar 2009 06:29:55 +0000 (22:29 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Mar 2009 06:58:52 +0000 (22:58 -0800) | ||
commit | a9f2c13685ae9040d52d53cd719a18040f1dd123 | |
tree | f3d1738b9c775468fedac43d62d3289cbebf0fd6 | tree | snapshot |
parent | a1070d4cbbf1002cc0b01afc3de06382deb0511a | commit | diff |
Make git-clone respect branch.autosetuprebase
When git-clone creates an initial branch it was not checking the
branch.autosetuprebase configuration option (which may exist in
~/.gitconfig). Refactor the code used by "git branch" to create
a new branch, and use it instead of the insufficiently duplicated code
in builtin-clone.
Changes are partly, and the test is mostly, based on the previous work by
Pat Notz.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When git-clone creates an initial branch it was not checking the
branch.autosetuprebase configuration option (which may exist in
~/.gitconfig). Refactor the code used by "git branch" to create
a new branch, and use it instead of the insufficiently duplicated code
in builtin-clone.
Changes are partly, and the test is mostly, based on the previous work by
Pat Notz.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c | diff | blob | history | |
branch.h | diff | blob | history | |
builtin-clone.c | diff | blob | history | |
t/t5601-clone.sh | diff | blob | history |