On Mon, May 19, 2008 at 09:32:21PM +0200, Santi Béjar wrote: > On Mon, May 19, 2008 at 7:53 PM, Luciano Rocha <luciano@xxxxxxxxxxx> wrote: > > > > Hello, > > > > > This is odd: > > $ git init --bare > > usage: git-init [-q | --quiet] [--template=<template-directory>] [--shared] > > $ git --bare init > > Initialized empty Git repository in /tmp/1/ > > The first is a flag to the init subcommand (man git-init), and the > other is a flag to git (man git). > > See also: > > http://www.google.com/search?q=%22git+init+--bare%22+%22git+--bare+init%22 > > or equivalent > > http://kerneltrap.org/mailarchive/git/2007/10/15/344050 > "should git command and git-command be equivalent?" > Ok, I understand. Still, there's a --bare command to git clone, and I had only tried git init --bare, not the other form, and it always failed. Only today did I learn I could do a git --bare init, from a colleague of mine. I'd suggest allowing git init --bare, or documenting the --bare init option. Regards, Luciano Rocha -- Luciano Rocha <luciano@xxxxxxxxxxx> Eurotux Informática, S.A. <http://www.eurotux.com/>
Attachment:
pgpER1huMwxkh.pgp
Description: PGP signature