git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git init --bare versus git --bare init
@ 2010-05-08 10:38 Oliver Hoffmann
  2010-05-10  9:42 ` [PATCH] handle "git --bare init <dir>" properly Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Hoffmann @ 2010-05-08 10:38 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-10  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08 10:38 git init --bare versus git --bare init Oliver Hoffmann
2010-05-10  9:42 ` [PATCH] handle "git --bare init <dir>" properly Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).