Subject: git init --bare versus git --bare init

From: Oliver Hoffmann <[email-masked]>
Date: Sat, 8 May 2010 12:38:13 +0200

Hi Git Folk,

If one accidentally writes "git --bare init <dir>" instead of "git init --bare 
<dir>" an appended directory argument is ignored and $CUR_DIR or the working 
directory will be used:

> pwd
/tmp/foo
> git --bare init /tmp/bar
Initialized empty Git repository in /tmp/foo/
> git init --bare /tmp/bar
Initialized empty Git repository in /tmp/bar/

... but both should probably be initialized in /tmp/bar/

Greetings,
Oliver Hoffmann