git init --bare versus git --bare init

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Hoffmann
Date: Saturday, May 8, 2010 - 3:38 am

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:

/tmp/foo
Initialized empty Git repository in /tmp/foo/
Initialized empty Git repository in /tmp/bar/

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

Greetings,
Oliver Hoffmann
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git init --bare versus git --bare init, Oliver Hoffmann, (Sat May 8, 3:38 am)