author | Luciano Rocha <luciano@eurotux.com> | |
Wed, 28 May 2008 18:53:57 +0000 (19:53 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 May 2008 01:31:19 +0000 (18:31 -0700) | ||
commit | 74d3b23fe3771c769ccd5c97f6a46682b4061577 | |
tree | 3c43256733366887751ad07cbc8ea40a2d53e546 | tree | snapshot |
parent | d2b3691b61d516a0ad2bf700a2a5d9113ceff0b1 | commit | diff |
git-init: accept --bare option
It is unfortunate that "git init --bare" does not work and the only reason
why "init" did not learn its own "--bare" option is because "git --bare
init" already does the job (and as an option to the git 'potty', it is
more generic solution).
This teaches "git init" its own "--bare" option, so that both "git --bare init"
and "git init --bare" works mostly the same way.
[jc: rewrote the log message and added test]
Signed-off-by: Luciano Rocha <strange@nsk.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It is unfortunate that "git init --bare" does not work and the only reason
why "init" did not learn its own "--bare" option is because "git --bare
init" already does the job (and as an option to the git 'potty', it is
more generic solution).
This teaches "git init" its own "--bare" option, so that both "git --bare init"
and "git init --bare" works mostly the same way.
[jc: rewrote the log message and added test]
Signed-off-by: Luciano Rocha <strange@nsk.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-init.txt | diff | blob | history | |
builtin-init-db.c | diff | blob | history | |
t/t0001-init.sh | diff | blob | history |