Skip to content
  • Luciano Rocha's avatar
    git-init: accept --bare option · 74d3b23f
    Luciano Rocha authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarLuciano Rocha <strange@nsk.pt>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    74d3b23f